3 ms·
PHP is fast to deploy, comes installed on a lot of cheap web hosts, and has literally zero set up cost - in terms of framework requirements, dependency installa
by potatolicious 17y ago
PHP is fast to deploy, comes installed on a lot of cheap web hosts, and has literally zero set up cost - in terms of framework requirements, dependency installation, daemons, etc etc.
To write a line of dynamic code and have it run, in PHP, is really as simple as typing out the code and saving the file. No build, no deploy, no frameworks to learn, just code that runs.
This encourages a lot of "well, I just need a little bit of dynamic stuff on my page" attitude, which as we all know eventually evolves into "wouldn't it be nice if I can also do this..."... and before you know it, 5 innocuous lines o PHP turns into 5000 lines of spaghetti code that has absolutely no design behind it.
PHP's reputation is also sullied by a number of high-profile projects surrounding it that have absolutely atrocious code quality - zero design effort and utter spaghetti. Guilty parties include: phpBB, osCommerce, WordPress, etc.