Hacker News new | ask | show | jobs
by dewey 4433 days ago
I know hating on PHP is en vogue but you could probably write the same ugly code with another language too.
2 comments

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.