4 ms·
I interned at Facebook, and let me tell you, there weren't many people enthusiastic about being stuck in PHP. A lot of modern sites are in PHP, because that's
by natmaster 18y ago
I interned at Facebook, and let me tell you, there weren't many people enthusiastic about being stuck in PHP.
A lot of modern sites are in PHP, because that's what the best choice was when they started (as far as they could tell), and now are stuck with that decision.
- fauigerzigerk 18y agoOK but look at this jobs trend line from indeed: http://www.indeed.com/jobtrends?q=PHP&l= http://www.indeed.com/jobtrends?q=PHP&l= All those companies just got stuck and see no way out? I'm no devotee of PHP at all, but just getting stuck isn't something that works for long periods of time for so many new projects. These are websites, not core banking systems or OS kernels. I think the real reason for PHP's success is that PHP doesn't force people to become software engineers when all they want to do is print some database records on a web page. And it doesn't force employers to hire expensive software engineers just to thrust software engineering complexity down their throat when they really don't need any of it. Believe it or not, there is still a great number of websites that are not web apps and never become web apps. They just show you some pages of content with some dynamic parts on some of them. There's no reason for MVC, no reason for object orientation, no reason for separation between designers and developers, no reason for ORM, no worries about transactions, no interaction with messaging systems or other integration stuff, no need for unit testing or mock objects, no need for 101 deployment scenarios, no need for REST APIs, no need for maintainability because there simply isn't that much code to maintain. But that's what 90% of RoR, Django, JEE documentation is about. People complain about atrocious PHP code. That's because some websites "degenerate" into web apps over time. The majority of people who create them are not software engineers and have no interest in becoming software engineers. And yes some of those "degenerate" websites are getting stuck with PHP. But I think you would be mistaken to assume that all or even most of them go down this route. Most websites just remain websites. Some do a rewrite. Others add more interaction or features by installing one of those clunky CMSs. And the CMSs are written in PHP to let the creators of websites (not web apps) customise the system using little pieces of PHP, again without any need for software engineering practices. So if you need a taxi today, why would you hire an international logistics specialist? Is it because you might get stuck with Beijing taxi drivers shipping iron ore to your steel factory, or because you may never need iron ore deliveries? I think for most users of PHP it's the second. They never do complex web apps. And all of that has nothing to do with whether or not PHP is suitable for creating complex web apps using software engineering principles.
- vlad 18y agoGreat post, though it is hard to follow in some places. For one, the parent's statement that "a lot of modern sites are in PHP, because that's what the best choice was when they started (as far as they could tell), and now are stuck with that decision," is logically sound, while your response that "there are more jobs for PHP developers than ever" isn't mutually exclusive to the parent's idea, so I don't see where he is wrong; as well, I think his post was limited to putting in context the opportunities for coding what we consider to be modern apps of today, back in 2003 and 2004.
- fauigerzigerk 18y agoI'm not saying the parent is entirely wrong. I just expressed my opinion that getting stuck is not the main reason for PHPs success, which is what I think the parent was implying.
- gaius 18y agoAll those companies just got stuck and see no way out? Same was true of say Visual Basic for many years.
- xiaoma 18y agoLook at this trend line from the same site: http://www.indeed.com/jobtrends?q=PHP%2C+ruby&l=&relative=1 http://www.indeed.com/jobtrends?q=PHP%2C+ruby&l=&rel...
- rythie 18y agoAre they just blaming the language for the code quality? If you are maintaining someone else's rapidly developed code, on a site with over 100 million users, then it's not exactly going to be easy is it? If they had developed it slowly in Java, say, over 10 years then the programmers might be happier but the site would have been too late to the market and lost.