PHP: a fractal of not so bad design - PHP - SitePoint Forums | Web Development & Design Community
PHP: A Fractal Of Bad Design | Piwigo.org
PHP: a fractal of bad design
PHP: a fractal of bad design - 7 years old and still relevant
I love how r/lolphp is full of php apologists 👍
More on reddit.comOne of the best articles describing the true nature of PHP is 7 years old! This article has made multiple rounds on the internet, and 1000s of developers have probably learnt what PHP truly is.
In these 7 years many of t issues the article explains are still part of the core, without a fix or patch.
https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
I love how r/lolphp is full of php apologists 👍
Numero uno is still a thing and never going to change the the entire language is predicated on this method of stupidity: the notion that it's better to fuck up data and keep chugging instead of throwing errors and stopping.
Everything with the type coercion is an antipattern. It's just bad.
PHP "arrays" are just...bad and they should feel bad. One data structure is trying to behave like a list and a dictionary, and doing poorly at both. And it's all implemented on a hash table. All of the C-style top level functions for manipulating them will happily do their thing without regard for what kind of data is in the structure, doing potentially unexpected things and destroying data without any indication of what happened. So you can have your script run and behave in bizarre ways, and have no hint as to what the hell is going wrong when you made a mistake. Because it's opaque at a glance and not easy for a linter to flag.