From time to time, I like to read articles and discussions from general community sites such as StackExchange, Quora, Reddit, etc. about anything in general, not necessarily about web development, but any topic you could think of. There was a time that I was looking around for some answers that are WordPress-related and then I found a couple articles I bookmarked that made me think a bit. It’s not about WordPress itself, but it’s about PHP:
- Programmers @ StackExchange: Why is PHP so hated?
- Quora: Why is PHP hated by so many developers?
- Reddit: Why do so many developers hate PHP?
- Mailchimp Blog: Ewww, you use PHP?
- Fuzzy Notepad: PHP: a fractal of bad design 1
- PHP still remains as (one of) the most popular web development languages to this date.
A lot of official sites (business, informational sites, etc.) are built in PHP and still being built/maintained in PHP. Most of them are powered by WordPress, which has become the most widely-used CMS/blogging platform even to this date. Like any other programming language, there’s always going to be outdated flaws and bugs as time passes. That’s why PHP, like other languages, have different/upgraded versions, to fix these bugs, deprecate features no longer needed for something new, and so forth. 3
- There are a lot of insecurities (like SQL injections) that (some) PHP developers don’t catch or even bother fixing on their scripts.
There’s always going to be a lot of insecurities on any web development language. I say this because non-web development programming languages (like the ones used to build computer software, online MMORPGs, etc.) would end up being broken into by hackers/crackers, and that’s why there’s always different versions and bug updates to fix these. A lot of PHP scripts that we see floating around the net are side projects for web developers to help them learn and understand the language more. 4 I could say that it’s a tactic that developers would do for money (donations, etc.), but that’s not the case with the folks behind WordPress. No programming language is perfect, after all.
- Most (if not all) shared web hosting services support PHP in their servers, not so much with other languages.
Proof of this is software suites like Softaculous. Most web hosts have Softaculous or Fantastico that offer free popular scripts for beginning web designers/developers (as well as seasoned ones too) for faster web development for themselves and/or for their clients. What annoys these anti-PHP developers is that they’re all built in PHP. For me, there are some scripts that I would love to use/try out for my future sites that aren’t built on PHP (for example, building a blog platform using Ruby (on Rails)), but I couldn’t upload them in my web server because my host servers don’t support Ruby (on Rails). I needed to have some kind of permission from the web host to see if they can install Ruby (on Rails) support in their servers, which in turn, can cost money too.
- (Professional) web developers are elitists.
I admire web developers for finding flaws on the said programming language, but to me, that’s not a good enough reason to just hate on them. Because PHP is so popular, everyone interested in getting into web development want to learn PHP instead of other languages. During my time at Skillcrush, I studied WordPress site development, but they don’t have any specific classes dedicated to PHP only. What they do have is a specific blueprint dedicated to Ruby on Rails. In their WordPress blueprint, we learned about WordPress, basic theme development with basic PHP, 5 and basic plugin development. There’s also this pride thing going on with some web developers who are already in the industry, where they fall in love with one or a few specific programming language that when others start to catch on, their pride and glory suddenly gets hurt and that their PHP projects would become a competitor of sorts to their own PHP projects. Therefore, many of them switch to other languages, build something really cool, and then show off to the world tht “this project runs the same as this PHP-based project, only better,” etc. etc.
- In-demand non-PHP web developers get paid a lot more.
There is also an article that is pro-PHP, but anti-WordPress (via the writer’s comments with others). I bookmarked it for future reference.
Learning web development, let alone just basic programming, from a non- developer’s standpoint, is becoming a lot more difficult to learn, even though experts are saying that learning web development and basic programming is becoming easier and easier. Not necessarily true. In the end, it all depends on the person and the methods that person is most comfortable with. I don’t feel that there is such thing as “the best programming language” in the world, because eventually some years ahead, another programming language will be introduced and then it would be the same debate over and over again.
But, sorry to the haters out there, but PHP still lives on today. I don’t think PHP will die down very soon.
On the sidenote…
- Keep in mind that the writer is ranting against PHP, NOT towards (specific) people who use PHP. It’s the same aim as my previous entry. Read the comments in that article too if you have the time. ↩
- because of WordPress… ↩
- PHP just recently released PHP7, but PHP5 is still widely used right now. ↩
- Not to mention they’re being offered as free and open source scripts. ↩
- which I still don’t understand, by the way… ↩
- unless if you’re some super learner, there’s no way you’d be able to learn all of them and then become an expert of all of them anyway… ↩