Re:Why PHP Was a Ghetto
by chc on Tuesday April 19, 2011 @02:55PM
(#2463751)
Besides its ubiquity, it is also the only real contender that is specifically designed for the Web. You can just stick a PHP file containing `echo "1 + 1 is " . (1 + 1);` anywhere on your site and it will tell you 1 + 1 is 2. Ruby scripts (for example) can run that way, in practice a server will be set up to use a Rack interface instead of just echoing the output of a Ruby or ERb file. This simplicity is attractive to many who are just starting out.
[ Parent
| on HN ]
Note that this kind of programming is deprecated even in PHP. In any reasonably well structured project, you'll find that kind of code only in templates, if at all.
From the article:
| Rasmus represents what most non-PHP developers hate about PHP.
| Rasmus generally promotes abstention from using frameworks, and the use of PHP as more of a templating language. To him, this translates to raw speed and scalability (load-wise). To everyone else, this translates to piles of procedural spaghetti code, and unmaintainable projects. For roughly 10 years following the birth of PHP in 1995, this was how PHP projects were written.