8 ms·
PHP is only popular because many hosting providers support it. Many hosting providers only support it because it's popular. At no point in this equation does
by astrodust 14y ago
PHP is only popular because many hosting providers support it.
Many hosting providers only support it because it's popular.
At no point in this equation does the relative merits of the language itself factor in.
- yogo 14y agoYet they didn't support it for years and now they are. I only found it funny because within the HN ecosystem you get the impression that it's really dying (rightfully so given the better options out there). Now another platform provider is supporting it, which will only increase its popularity according to your statements.
- cramsdale 14y agoFor many applications they require a CMS and PHP clearly owns the market space here with Wordpress and Drupal -- strategic in terms of driving growth and new business. We also believe that since App Engine was built with multitenancy in mind from day one that it's a more secure, hardened environment -- better for developers. Finally, and to my point above, the majority of the internet has been built with PHP whether folks like it or not. We want to bring the benefits of cloud to this large corpus of developers -- advancing computing rather than stagnating it.
- iguana 14y agoPHP is popular because it's incredibly easy to get started for someone used to doing things with HTML. An HTML page can be renamed to .php, and that is a valid PHP page. For someone trying to go from HTML/CSS to the server side, PHP presents the path of least resistance. When using PHP, a lot of the basic data structure transforms are implemented in the core language. You can integrate simple server side functionality into a static HTML page in just a few minutes, and it will work on 99%+ of hosting providers, and requires no fees and no tools. For pedantic hackers like us, sure, it's garbage, but for the average person that just wants to get things done, it is pure gold. Also, WordPress, while the biggest POS in almost every possible way, has a vast community of users, designers, plugin makers, and a marketplace for various extensions and themes. Google just opened up a huge chunk of the web app / CMS market.
- umsm 14y ago> For pedantic hackers like us, sure, it's garbage, but for the average person that just wants to get things done, it is pure gold. I disagree. The developers of Wordpress are not "the average person". There are too many production sites that run on PHP to say it's garbage.
- TheHydroImpulse 14y agoWordpress is garbage. Just because there are a lot of production sites built or using Wordpress doesn't mean it's good. Wordpress is popular because of it's community, use of PHP which allows you to host it on many providers, and a ton of themes and plugins. Wordpress is probably the worst spaghetti code I've ever seen (we'll, close).
- umsm 14y agoMost of the arguments are biased opinions and can't really be defended. But... if you don't like wordpress, why not assess projects such as Symfony2 or Drupal?
- jtreminio 14y agoBecause quality projects like symphony Symfony 2 does not fit into his works view of php.
- astrodust 14y agoIf Symfony is so amazing, why does nobody use it? I mean nobody in the almost literal sense. Stack Overflow serves as a rough barometer of popularity and either Symfony users have no questions, use another support platform, or they don't make up a significant population. The #1 problem with the PHP community is it's complete anarchy and filled with people that should not be developing web apps, or at least should not be developing the way they're going about it. Maybe Symfony could fix that, but there's a lot of work to be done here.
- camus 14y agoPHP is popular because users know it is a good compromise between javaish stuffs ( type hinting in functions and methods , private,protected,public members, interfaces,and abstract classes ) and some whatever dynamic stuff out there ( dynamic , weak typing ) and some weird/functional stuffs ( pointers , closures , callbacks ). Yes PHP has a lot of bad parts. But its good parts are really really good. Most hosting providers dont allow serious php development anyway , so it makes little difference. You need a vps or a PAAS to do serious PHP development , like any other solution out there. I love python and ruby. But I really miss type hinting everytime i use one of these.
- TheHydroImpulse 14y agoPHP has just mixed and matched a ton of different features from other languages without having consistency. For example, many of the core functions have different naming conventions and many of it's OOP features are after thoughts.
- chromatic 14y agoAt no point in this equation does the relative merits of the language itself factor in. ... except for "easy to deploy", which is a merit.
- iguana 14y ago* Easy to deploy * Cheap to deploy * Easy to find programmers to help you * Affordable programmers * Code is easy to read for non-programmers who understand HTML * Ton of free code available to reuse Inconsistency, poorly thought out OO, lack of purity, and disdain by hipsters are a small price to pay for those merits.
- krapp 14y ago... disdain by hipsters is a bonus in my book.
- astrodust 14y agoSo you're a hipster, basically. "Hating PHP? That's so mainstream. Personally, I'm hating on Haskell and NodeJS."
- krapp 14y agoI plan to hate Python once I learn enough of it.
- brokenparser 14y agoSignificant whitespace.
- eevee 14y agoSo you're saying that, as a programmer, it's in my best interests to learn something other than PHP so I'll be less affordable...?
- 14y ago