
Rather than rehash all of the points made in this article by Jeff Moore, I'm going to just link to it instead: Why is PHP Popular?
Probably the number one reason I would say that PHP is so popular is how easy it is to use.
Stop right there - don't start in with any "Yeahbut" statements having to do with how easy web application development is with J2EE/Zope/.NET/etc "Once you get the hang of the framework".
I'm talking about how easy it is for the frustrated web designer/JavaScript programmer to start fooling around with. I mean how much easier does it get than
echo "Hello, World!";
Compare that to Sun's own HelloWorld example in Java:
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); //Display the string.
}
}
That's why PHP is so popular.
Where PHP does start to fall apart, though, is when you start building large, complex applications with it - the fast and loose coding that makes it so easy to learn initially makes it easy to lose track of variable types, and the lack of exception handling in a large application starts to make things hairy.
I've been using PHP 4 for the better part of four years now, and I think I'm reaching the limits of what I can do with it in the context of the types of projects I find myself working on... but I don't understand why "real programmers" are puzzled by the language's popularity. It's easy. You don't need a comp sci degree to do powerful things with it. (Never mind about how language x does the same thing more elegantly/consistently/robustly. It's easy in PHP. You can pick up the theory stuff as you go along.)
I wish enterprise languages would take a cue from PHP's excellent online documentation, which provides helpful text and useful example code for nearly every function, and links to other manual pages somehow related to the current function or subject you're looking at. User annotations also provide helpful errata or further code snippets to make the docs even more helpful.
But perhaps that ease of use factor is what bugs "real programmers" about PHP... call it nerd machismo. Although it looks like I'm moving away from PHP as a primary programming language, I hope I never become one of those surly J2EE/.NET types who love to hate the language that enabled me to replace the word designer with the word programmer on my resume.
Drew told me to:
From a book called Zope Bible from Hungry Minds:
Everything in your web site is saved in the ZODB.
Well, such is not actually the case at the moment... but hopefully it will be at some point in the not-too-distant future.
Over the last couple of years I've written a couple of things about NHL Hockey, the only sport I've ever really been interested enough in to follow with any regularity. The interest is a relatively new-found one, and despite the fact that sports fandom is completely accepted (expected, even) behavior for white males of all ages, I still find myself uncomfortable with the notion of being a "sports fan". This is largely an artifact of my picked-last-for-kickball and dodgeball-target childhood. It's also partly not wanting to be lumped into the sub-group of homo sapiens that includes the shirtless, face-painted lummoxes you invariably see in the stands at professional sporting events.
That being said, it has been an entertaining post-season for the Boston Bruins, in their seven game quarterfinal series against the arch-rival Canadiens. Although the series is not won, I'm actually going to go so far in my uncomfortable role of sports fan do a bit of gloating, and bitching about the Habs' antics by way of linking to a nice article by Eric Wilbur, titled French whine.
Read that, and then consider the fact that while Ribiero and Kovalev were out there pretending to be hurt and hoping to draw cheap penalties, Bruins' defenseman Ted Donato had his foot broken by a slapshot and skated back to the bench on his own accord, and then played two more shifts on a broken foot. Even the Montreal Gazette is on Ribiero's and Kovalev's case.
Game 5 at the Fleet Center is going to rock.
I've said it before, but two years later it only seems to have gotten worse... I'll say it again:
Posting improbable news headlines, unlikely programming language feature enhancement announcements, and other random garbage on every single newsgroup, bulletin board, weblog, and post/comment web community on the Internet on April first is neither particularly clever, nor amusing.
I blame Google for doing this particularly well a few years back... since then it seems like everyone thinks that posting headlines and seriously-written-yet-tongue-in-cheek articles like "Microsoft buys AOL" or "Python adds GOTO statement" is instant comedy gold, sure to secure them trackback notoriety down through the ages.
It's not. It's not funny, and it's annoying as hell to have the entire Internet turn into one giant source of misinformation in the form of badly-written comedy for 24-48 hours.