LWN.net Logo

PHP: a fractal of bad design (fuzzy notepad)

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 17, 2012 0:36 UTC (Tue) by roskegg (subscriber, #105)
Parent article: PHP: a fractal of bad design (fuzzy notepad)

This kind of content is why I keep coming back to LWN.net. Very insightful. PHP was the origin of brogramming, not JavaScript. If you squint, you can pretend the JavaScript is a variant of LISP. PHP is like the bad parts of C++, dumbed down so any idiot can misuse them.


(Log in to post comments)

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 17, 2012 7:42 UTC (Tue) by kmike (guest, #5260) [Link]

It's a bit ironic reading this here at LWN which was powered by PHP in the early 2000's (google for "lwn phtml" or "lwn php3").

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 17, 2012 14:04 UTC (Tue) by maney (subscriber, #12630) [Link]

Our Editor is not the only one who fell for the PHP Hype back in the bad old days. The thing is, it did make simple things pretty easy, and is still arguably a good choice for the sort of simple database query & generate that it was first intended for. And besides, back then Python's support for web page generation was little more than "import cgi". But that changed, and we escaped PHP. Years later I found the perfect concise explanation of what went wrong:

Q: What do you get when programmers design a language while trying to get something else done?
A: PHP -- Jeremy H. Brown

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 19, 2012 10:23 UTC (Thu) by janpla (guest, #11093) [Link]

Well, it is popular, and as they say: 50 million flies can't be wrong.

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 19, 2012 16:42 UTC (Thu) by smitty_one_each (subscriber, #28989) [Link]

Dyslexia: I'm all, "50 million flies?" which also makes sense in this context.

PHP: a fractal of bad design (fuzzy notepad)

Posted Apr 23, 2012 5:01 UTC (Mon) by zlynx (subscriber, #2285) [Link]

No, the saying really is flies.

Just because 5,000 flies like the s**t does not mean it isn't s**t.

Applications and languages

Posted Apr 17, 2012 16:13 UTC (Tue) by gwolf (subscriber, #14632) [Link]

Well, I agree that PHP is an awfully awful language. I have (fortunately) only had to write a small project in it, although I have maintained some largish things... The problem is, there are some good apps done in it. Many people, me included, will happily use a good and well-maintained application (say, I am a very happy Drupal user, and its developer community is very security-conscious and active), even though it's programmed in PHP.

But choosing PHP for a new project? No, no, for the love of all that's holy, no!

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds