3 ms·
Your post started good, ended bad. I personally see nothing at all wrong with PHP. I'll go read some of the other posts, but I wonder what's so bad about it. (
by ars 18y ago
Your post started good, ended bad.
I personally see nothing at all wrong with PHP. I'll go read some of the other posts, but I wonder what's so bad about it. (OK, except that built in function names have no pattern to the naming.)
I think people hate it precisely because it's so easy to get started with. Have you ever met people who, the more obscure something is, the more they like it?
Linux is now too mainstream for them, so they use hurd. You see it with health food too - regular health food is too mainstream, so now you must eat local. Soy used to be eaten only by health nuts, now that it's mainstream, they say not to eat it.
These are people who hate all the regular languages and love the obscure ones (I won't name them for fear of flame wars). You can like an obscure language, but if you also hate the regular ones, you just want to be different and that's all.
- danielh 18y agoI think that most lovers of "obscure" languages (I'm thinking Lisp, Erlang...) couldn't care less about being different. These languages challenge your mind and allow you to solve problems more efficiently. Or have you every seen a serious project done in Whitespace, Brainfuck, etc?
- alex_c 18y agoI haven't followed PHP closely throughout its history, but I think at least some of the hate comes from questionable features that used to be a problem, like magic quotes or register globals (and the underlying problem that PHP would let you write code without knowing what you're doing, and thus ending up with horribly insecure web code). I think a lot of that has been fixed, but the perception lingers. Another reason to dislike it is that it occupies a somewhat awkward niche in the language spectrum. It's not as strict as something like Java, which can make it more difficult to use for large projects. It's not as powerful or expressive as something like JavaScript or Ruby/Python, which makes it a lot less fun to use. The only thing PHP really has going for it is that it's the closest you can get to a language that allows you to just write code that works "on the web", without having to fiddle with any server configuration or install anything (and it has a good set of libraries well-suited to this purpose).
- jrockway 18y agoThese are people who hate all the regular languages and love the obscure ones Yes, this is all true. Being different is fun! But some people use real programming languages because they understand programming, not because being intelligent is "obscure". It is possible to get started with PHP quickly, but I can hack applications together very quickly in Perl and Lisp too. The difference is that these quick hacks turn out to be maintainable and extensible. Hacking around PHP's brokenness gets very tiring very quickly. (PHP is like writing C that executes 1000x slower and requires more use of the shift key.) Just because PHP is easy doesn't mean that it's the only language that's easy -- pretty much everything but Java and C are just as easy. (And with the right tools, these are pretty easy too.)