Re:What I Like About PHP
by krapp on Tuesday December 09, 2014 @09:09PM
(#8727295)
I think one of the fundamental points that a lot of criticism of PHP misses (and there is a lot to criticize about PHP) is that it doesn't have to be a very good language to do what it needs to do, which is, almost entirely, CRUD.
Everything else aside, being able to get an iterable array from a database and crap out an HTML page with very little effort says a lot about its popularity. You don't need to be a good language to accomplish that, or even really a sane one. You can mix css, javascript and data sets together right in the same document. Insane? Probably. A bad idea? Almost always. But also weirdly liberating, and very easy to get from point A to B.
Everything else aside, being able to get an iterable array from a database and crap out an HTML page with very little effort says a lot about its popularity. You don't need to be a good language to accomplish that, or even really a sane one. You can mix css, javascript and data sets together right in the same document. Insane? Probably. A bad idea? Almost always. But also weirdly liberating, and very easy to get from point A to B.