Zend Developer Zone
Where the ElePHPants come to learn

Zend Developer Zone

Jaybill McCarthy Dispells 10 PHP Myths

Incredibly Old Content Warning!

The content you are viewing is more than three years old. It is here for archival purposes. Do not use any advice in this article.

::Jedi Hand Wave:: This is not the information you are looking for. Move along.


“Jaybill McCarthy”:http://jaybill.com/ has written an excellent blog post to open the year with, “10 PHP Myths Dispelled”:http://jaybill.com/2008/01/02/10-php-myths-dispelled/. In it he spends a paragraph on each of 10 myths about PHP and show why they are just not true.

bq. Myth #1: PHP is not a truly Object-Oriented Language

I hear this one a lot from Java programmers. It’s completely false. PHP has excellent OO language facilities. There’s inheritance, abstract objects, interfaces, properties and methods. Okay, there’s no polymorphism. (Personally, I think polymorphism might be the worst idea ever, but that’s just my opinion.) I will say that there have been vast improvements in PHP’s OO mechanics with PHP 5, but I’ve written lots of PHP 4 apps that were totally OO. The mere fact that you can write purely procedural PHP code doesn’t mean that PHP isn’t OO capable. Furthermore, the fact that PHP allows you to mix OO and procedural code makes things like bootstrap scripts really simple.

He goes on to tackle topics like:

*(disc) PHP Encourages Sloppy Code
* PHP is slow because it’s interpreted
* PHP isn’t really for “serious” developers

Click on over to “10 PHP Myths Dispelled”:http://jaybill.com/2008/01/02/10-php-myths-dispelled/ and give it a read.

Many moons ago, at the tender age of 14, Cal touched his first computer. (We're using the term "computer" loosely here, it was a TRS-80 Model 1) Since then his life has never been the same. He graduated from TRS-80s to Commodores and eventually to IBM PC's. For the past 10 years Cal has worked with PHP and MySQL on Linux OSX, and when necessary, Windows. He has built on a variety of projects ranging in size from simple web pages to multi-million dollar web applications. When not banging his head on his monitor, attempting a blood sacrifice to get a particular piece of code working, he enjoys building and managing development teams using his widely imitated but never patented management style of "management by wandering around". Cal is happily married to wife 1.31, the lovely and talented Kathy. Together they have 2 kids who were both bright enough not to pursue a career in IT. Cal blogs at http://blog.calevans.com and is the founder and host of Nomad PHP