4 ms·
So... don't do that? You're correct, it's possible to write blisteringly awful code in PHP. Ditto every other programming language ever.
by paledot 6y ago
So... don't do that? You're correct, it's possible to write blisteringly awful code in PHP. Ditto every other programming language ever.
- IgorPartola 6y agoBut PHP makes it way too easy and provides few ways to guard against it. Well technically now it does with namespaces but that’s still less than ideal. And my point is that they are just now starting to catch up to more sane languages.
- sneak 6y agoThere is an argument for judging programming languages based on the worst code possible within the language, due to the fact that with a wide enough ecosystem, you will regularly encounter lots of stuff in the median between that and your “just don’t do that” standard. This is one of the reasons I love Go: the worst code possible in it is still pretty readable. The worst code possible in PHP is scattered across thousands of files corresponding to individual routes, and isn’t indented at all.