3 ms·
How much of this article is still valid?
by kyriakos 4y ago
How much of this article is still valid?
- bawolff 4y agoI 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.
- maweki 4y ago> 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?
- meta2023 4y agoThat’s true in every dynamic scripting language.
- asddubs 4y agothey did fix that: https://wiki.php.net/rfc/ternary_associativity https://wiki.php.net/rfc/ternary_associativity it now requires parenthesis, and will be transitioned to being right associative