4 ms·
There are a few narrow cases where I'd choose to do a project in PHP, but very few. It is possible to write nice clean code in PHP, but few apps I've ever seen
by grandalf 17y ago
There are a few narrow cases where I'd choose to do a project in PHP, but very few.
It is possible to write nice clean code in PHP, but few apps I've ever seen do so. Most use includes like function calls all over the place, so there is no notion of what variables will be used or defined inside the included code.
Ruby to some extent, and especially Python, are designed so that your code looks good and is easy to read. Admittedly some people can write highly obfuscated Ruby, but that (fortunately) went out of style a few years ago.
- maxklein 17y agoThe average programmer does not use Ruby or Python. He uses Java, PHP or C. And the programming world is dependent on the average programmer.
- seiji 17y agoI think the problem is you state your opinion as absolute fact. Your model for programming appears to be 10,000 monkeys typing away at the specifications handed down from On High. PHP does work in that scenario. It's simple. It's easy to think in because it's so simple. You can do complex things, but it'll be by gluing infinitesimally simple parts together over and over and over again. (Think of PHP programs as an essay written by a 2nd grader. Lots of simple sentences. Lots of repetition.) If all you have available is a bulk of mediocre people, then PHP is a great way of making sure they produce what you want right now. Of corse, in this process, they will remain mediocre and never become more than your "average programmer" stereotype due to being forced to only think in the absolute simplest terms.