Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I know hating on PHP is en vogue but you could probably write the same ugly code with another language too.


Yes you could, but it's harder. extract($_GET) does not look as bad as eval(request.GET) but it's almost the same thing for example.


Not possible. Other languages have features to prevent this.


I highly doubt you have anything else to add because I'm sure you're just another person jumping on the "hate php" bandwagon - but go on, entertain me.

Please elaborate.


Most languages dont have extract($_POST) and hop,everything's overwritten... PHP has a lot of shit like this.Yeah you dont have to use them,but they shouldnt be here at first place,if PHP core devs cared about a sane API. PHP doesnt have a sane API. PHP core devs dont give a damn. That's why facebook developped Hack and HHVM.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: