If you know me, you know I’m a pretty devout PHP coder when it comes to my own adventures in web development. I’ve been using it since version 3 (started with it in Y2K) and in using it that long, I’d be the last person to say that it’s a perfect language. Is any language perfect? Nope, and if you think your language of choice is, then you probably don’t know enough about the language to know about those subtle nuances that can ruin your day. Perhaps in the future, there will be a perfect language but if I had to guess, it will be written by the machines and will be used to help to bring an end of days to the human race.
So why use it if it’s so flawed? Quite simply, I love the fact that PHP was originally conceived to build websites. PHP originally stood for Personal Home Page Tools and it was built by Rasmus Lerdorf so that he could maintain his personal website. Why is this so important to me? Because it was designed to build websites, a lot of common functions are already built (albeit sometimes with bizarre naming conventions). Sure, objects in PHP suck but so does writing 3 lines of code to generate an MD5 hash in Python:
Now this isn’t to say that the other languages out there are absolute junk and everyone should use PHP. I just wanted to point out that PHP does have it’s strengths just as other languages have their own set of weaknesses as most posts I see are the other way around. Just a bit more flamebait before I go:
- Twitter was built on Ruby on Rails. Facebook was built in PHP. Twitter dropped Ruby for JVM. Facebook created HipHop. Your argument is obviously invalid.
- Eric Allman created the best indent style because it actually serves a functional purpose and saves keystrokes. Shut up about less vertical space and buy a larger monitor cheapskate!
That’s all, Happy Tax Day to all and to all a good night!