News for hackers. Stuff that matters.
Re:Why People Think PHP Sucks (2014) by bawolff on Sunday November 27, 2022 @11:45AM (#33764270)
I dont think much of it was ever valid.

You can't really blame a language for the fact that some people wrote bad code in it. By that metric all languages are bad.

The valid ones are mostly nitpicks. Some standard library functions have inconsistent naming/argument order/poorly designed/multiple functions that do the same thing. Hard to change for back compat reasons, but you can simply not use those functions.

The ternary operator being left associative is the only truely wtf php design choice on the list imo.

Re:Why People Think PHP Sucks (2014) by maweki on Sunday November 27, 2022 @11:48AM (#33764296)
> You can't really blame a language for the fact that some people wrote bad code in it.

The inexistence of footguns or statically enforced good practices are things we would usually praise a language for. So why should PHP not take the blame for how easy it is, to write atrocious code?

Re:Why People Think PHP Sucks (2014) by meta2023 on Sunday November 27, 2022 @11:53AM (#33764328)
That’s true in every dynamic scripting language.
Re:Why People Think PHP Sucks (2014) by asddubs on Sunday November 27, 2022 @12:00PM (#33764406)
they did fix that:

https://wiki.php.net/rfc/ternary_associativity

it now requires parenthesis, and will be transitioned to being right associative