PHP developers: wakey wakey!

Monday Feb 6 2006

I placed this entry under 'programming' but it might as well have been placed under 'rants' really. I've been programming for over six years now. It's still definitely my language of choice because of it's speed, ease of use, ease of deployment and last but not least: because of the huge community with all of it's advantages. However there's one thing that's really bugging me lately: PHP is seriously suffering from what a friend of mine called 'the Apache syndrome'. Apache 2.x has been released a long, long time ago. Yet, tons of servers are still running 1.3.x and they probably will continue to do so for years to come.

While this isn't all that serious for a webserver (as long as it serves it's stuff and the server doesn't break it's fine) I believe the case is different with PHP.

Dark Matter Pro: a premium photoblog template.

Affiliate program available

Lately I have the feeling PHP's 'coolness factor' is diminishing faster than gained this status. The main reason for ' success is it's advanced development paradigm: Model View Controller. Ruby on Rails forces pure object oriented application design in which the application is strictly divided into three layers: A data layer, a business layer and a presentation layer. Many developers (including PHP developers) are 'discovering' this style of application design through Rails. In short, Ruby on Rails is good news for the web development community. Finally we're moving away from amateurish script hacking into true object oriented application design.

All this stuff however isn't some sort of holy grail introduced by 37Signals. This way of working has existed for much longer. In fact it's being used in most professional software engineering environments. Java, .NET, Python, you name it, the pro's work with and a solid OO architecture. Yet PHP seems to be unable to escape from the script hacking phase in many cases. Skilled PHP developers with solid understanding of OO design who are able to unleash the power of what has to offer are extremely hard to find. For some reason, PHP developers seem to be stuck with version 4.x forever and ever. They're missing out on an astonishing amount of new features, better performance, superb new core extensions and last but not least: a mature . What a shame that is!

In November 2004 (yes, I kid you not) I already wrote an extensive article on the wonderful new stuff available in PHP5. With version 5.1 there's even more excellent stuff available. Let's walk through some highlights:

  • private and protected variables
  • private and protected methods
  • interfaces
  • unified constructors
  • abstract classes
  • destructors
  • exception handling

These were just some features of the new object model. There's more!

  • highly improved XML DOM support
  • SimpleXML
  • highly improved XSLT
  • PDO, the new dababase abstraction layer
  • SQLite

The list goes on and on and on. Then there's superb frameworks such as Symfony or WASP. There's so much exciting stuff available I haven't even been able to touch half of it. But I did touch the most important thing: PHP 5.x. Going back to version 4 feels like stepping out of a Rolls Royce to continue your journey with an old worn Chevy.

Therefore, PHP developers: Move your ass, port your legacy apps and start reaping the fruits of true web applications with PHP5. It will take some effort if your PHP4 code is of a rather messy nature but if you've been a good boy/girl while developing your PHP4 application it won't be all that hard. After this you'll be able to taste the goodness of PHP5. Do it, today. You won't regret it!

Yes, I know. You can do more or less robust MVC design in PHP4 as well, as long as you're thoroughly disciplined and as long as you 'fake' a lot of stuff you'd use automatically in PHP5. PHP5's object model is simply lightyears ahead of PHP4's one.

bookmarking

Commentary

Join the discussion! Leave a comment through the comment form below!

Got something to add to this?

Feel free to leave a comment on this site. You can use Textile and Emoticons. Your email address is only used to show a gravatar. Please stay on-topic and use common decency. Spammers will be shot in front of a live studio audience.

If you plan on posting code, use pastebin please and post a URL to the code. The comment processing doesn't deal very well with code. Sorry for the inconvenience.

Human comment spammers: don't bother posting your crap here. Comments are moderated and I won't let any of your shit through.

Remember personal info?
Yes
No

Trackbacks

If you have an interesting related post on your own site you can leave a trackback. As they say: 'a little AJAX a day keeps the spammers away' which is why you'll have to click below to generate a trackback key. The key will be valid for 15 minutes and can be used only once.

PHP5 Adoption
So Marco van Hylckama Vlieg as a post titled PHP developers: wakey wakey!. In this posting he talks about the lack of movement towards PHP5. I had a couple thoughts about this (keep in mind, I myself refuse to move to PHP5):

When the core developm…Sent on 21 February '06 - 20:00 , via Pyronecrophilia
Getting an RSS feed with the Zend framework 0.1.1.
In case you’ve missed it, the fisrt pre-release of the Zend PHP framework went public. I briefly looked into it and here’s a quick example to get you started….Sent on 04 March '06 - 21:12 , via phpied.com
The mass amateurisation of everything, in code
This has been living as a draft post for as long as I can remember. It’s become a millstone when it was meant to be a look at how web coding seems to be getting (figuratively) worse and worse.Sent on 07 March '06 - 07:14 , via Suttree, Elixir for Immortal Baboon

 

  • Featured Links
RockySomewhere near the Orion NebulaBookalicio.usGolden Gate BridgeThames River BankJackie and mePimpin' it