Tim Bray has an interesting post on PHP, which actually gets interesting in the updates (which he appends to from email because he doesn’t have comments, pity). When SAP did the Zend investment a lot of time was spent on the technical due diligence. The slap on PHP has always been that it’s a scripting language trying to be a “grown up” development language… you often hear this from older developers or, for lack of a better term, technology snobs.

Using Python as a contrast there are some distinct disadvantages that PHP has, like:

  • – Python can be run outside of a web server as a separate process, PHP can’t
  • – indententation makes for easy-to-read code, and if you have ever looked at PHP code you know what I mean
  • – PHP has a much larger core than Python
  • method chaining and multiple inheritance in Python, don’t have that in PHP
  • – lots of data types
  • differentiation between array types (lists and dictionaries) in Python
  • – references are difficult in PHP
  • – namespaces and modules in Python

The list goes on and in all fairness PHP has some distinct advantages as well, like the fact that it is very easy to get started with because it’s more forgiving than competing languages (e.g. globals used to pass arguments, all variables are “set”).

In the end, the strength of PHP for the investment decision came down to the fact that there were so many developers using it on so many websites. Community, it’s increasingly coming down to the community and not the technology.

6 thoughts on PHP

  1. Jeff, I have to disagree with you here. I have a help desk product that’s 100% PHP. I don’t use global variables, I use references where appropriate (it’s not hard) and so on. As with all programming languages if you code sloppy your code will be vulnerable.

    I agree that the simplicity of getting started means there’s lots of poor PHP sites/products out there but it doesn’t mean that when you look at a companies product you can simply pass it off as being bad because of the language it’s written in (or good for that matter).

  2. Hi Ian,
    You are making my point for me. The elegance of the technology is secondary to the community around it, which is why we invested in a PHP company. It’s a shift in perspective, we would have put much more weight in the technology part of an investment just a few years ago.

  3. Ah, perhaps I took your post the wrong way. I should have my coffee before I start commenting in the morning 🙂

Comments are closed