by smacktoward · 13y ago · 0 comments
PHP is easily and inexpensively deployed on commodity hosting.
PHP has a large base of existing code that can be re-used and built upon.
PHP has a large base of existing documentation that can be learned to get up to speed on it.
PHP has a large base of existing developers whose knowledge can be tapped into via services like StackExchange.
Most of these advantages aren't really intrinsic to PHP-the-language so much as they are to PHP's position in the marketplace. PHP is popular because it's easy to deploy, but it's also easy to deploy because it's popular -- hosts and admins are willing to put work into supporting PHP that they're less willing to put into supporting languages with smaller user bases, because the upside for doing so is so much bigger. But that doesn't mean they're not advantages.
On the plus side, PHP-the-language has gotten a lot better and more pleasant to use over the last few years. It's still got warts, as you note, but it's a long way from the incoherent grab bag of functions that it started out as. And while it's definitely possible to architecture-astronaut it (cough Symfony cough), it's also possible in PHP 5 to write reasonable clean, modern-feeling code without having to jump through a gazillion flaming hoops.
So is everything else now that dirt cheap VMs are the norm.
>PHP has a large base of existing documentation that can be learned to get up to speed on it.
Much of which is wrong or even dangerous.
>PHP has a large base of existing developers whose knowledge
A large number of developers, but most of them possess a shockingly small amount of knowledge.
Not easy enough for most people.
>Much of which is wrong or even dangerous.
If it stupid and it works, it ain't stupid.
>A large number of developers, but most of them possess a shockingly small amount of knowledge.
The 10% of people with the vast knowledge are not going to write the 100% of the software, so the people with "small amount of knowledge" will still be there.
Just like you don't just have Picassos but also regular painters.
I, for one, in my comment:
1) reminded that the availability of "dirt cheap VMs" doesn't make PHP installation any easier compared to a hosting provider (just drop PHP files into folder -- or just select a PHP app to be installed from a Web panel).
2) Having lots of documentation is a benefit, even if "much of it is wrong" in some way. It it works, people will use it, be it wrong or not, and they will get bootstrapped enough with their app to eventually replace it with something better. If we demanded near perfection from everyone, the web would be 1/1000 the size -- it's the ability to also have "wrong" stuff work that made it huge.
3) That "most of PHP developers posses shockingly small amount of knowledge" is not against but in favour of the language. Those people also need to get something done, and if they can achieve that with PHP, more power to them.
The complaints are elitist cries, that only some deeply knowledgable programmers should be allowed to code stuff for the web.
I find the possibility of somebody with limited knowledge writing a webpage or even a webapp in PHP empowering. And if you don't like to consider my opinion, ask Derek Shivers.