3 ms·
Back when all you had for choices were Perl, Java, and C++ it was easy to see why PHP got big. However there are issues with starting out on PHP now: 1) It's r
by chaostheory 14y ago
Back when all you had for choices were Perl, Java, and C++ it was easy to see why PHP got big. However there are issues with starting out on PHP now:
1) It's really only meant for web development.
2) There are other languages now that are simple to learn, flexible (more than just for web apps), and powerful (Python, Ruby, and now even Javascript)
Unless PHP has another major evolution, like its move to OO; (or unless I just missed something else big) I just don't see the point of using it unless you or your company been using it for years already. This article doesn't have any real compelling arguments.
Maybe all of this will change once Facebook releases Hiphop VM AND people actually start using it. To this day, I'm not sure why no one started using Hiphop enmass and why people love using the inefficient eval method. O yeah there's also an issue with PHP and logic dealing with concurrency, in that there isn't a good way to distribute work within an app. Then again I could be completely wrong.
- jmathai 14y agoAgree with all your points except this one. >> Maybe all of this will change once Facebook releases Hiphop VM AND people actually start using it. The argument that PHP doesn't scale is a strawman. To scale anything to the likes of Facebook or Google you have to have serious architecture in place regardless of the language you choose.
- chaostheory 14y agoI wasn't thinking of scale. Correct me if I'm wrong, but wouldn't hiphop VM essentially expand PHP from just being a web language into something more?
- jmathai 14y agoI stand corrected. I hadn't thought of it really. But the thought of PHP for non-web kind of makes me cringe even if it's translated into another language by an intermediary. For sanity sake I'm going to assume NO :).
- mgkimsal 14y agoI've been working with PHP since 1996 and rarely see eval being used. I've worked with hundreds of companies training PHP developers, seen inside (and written) some very large codebases handling millions of dollars of transactions, and don't recall seeing eval in any of them. "it was easy to see why PHP got big" It's easy to see why it's staying big: 1. cheap shared hosting to get started 2. most hosts offer one-click installation of any sort of application people need on the web (blogs, shopping carts, calendars, social networking, file hosting, etc) 3. 15+ years of knowledge about what works and what doesn't when attempting to scale PHP to large needs. 4. ubiquity which keeps a large pool of reasonably priced talent available, which perpetuates the cycle. When there's a competitive language that can be placed in a directory as FOO.abc, I can hit it as /FOO.abc and have it execute, with html content type sent by default, it'll have a running jump at dethroning PHP. The barrier to entry is the lowest out there, but the heights it can scale to are facebook-level and beyond.
- chaostheory 14y ago> I've been working with PHP since 1996 and rarely see eval being used. For some reason most of the major frameworks use it, hence their incompatibility with hiphop; then again I could be wrong. > 1. cheap shared hosting to get started One can argue that all of the major languages have access to this. PHP doesn't have an edge in this area. > 2. most hosts offer one-click installation of any sort of application people need on the web (blogs, shopping carts, calendars, social networking, file hosting, etc) With the rise of the cloud hosts and automated config, as well as more automated tools available (e.g. Chef, Puppet), this is a temporary advantage. Deploying on Linode and Heroku and (insert cloud host company) are getting easier and easier. > 3. 15+ years of knowledge about what works and what doesn't when attempting to scale PHP to large needs. No argument here. My points only apply for people starting now, and not for PHP vets. > 4. ubiquity which keeps a large pool of reasonably priced talent available, which perpetuates the cycle. No argument here either. My points were being made for individual programmers who are just starting out, and not for companies. Even from the point of a company though, PHP's current lack of flexibility lowers the chance of innovation imo. The other dynamic languages are just as easy to learn and they just offer more than PHP does.