Why developing your own blog software isn’t always a good idea

David Goodwin made the following comment on my post about migrating to WordPress:

Despite every ‘web2.0′ language/framework having a ‘create a blog application in 5 minutes’ example, it’s amusing to see even a developer default to Wordpress, which is still written for php4

I can see his point, and I agree that is amusing. Of course I’m not going to miss a chance to get on my soapbox though. :)


Creative Commons License photo credit: -SW-

Coding a blog-style application is easy. In MVC terms you only really need two controllers: one for posts and another for comments. Everything else is just gravy.

Developing a blog-style appliction is hard. You have to support feeds (preferably RSS and Atom). You should support Trackbacks. Comment moderation and spam protection are other must-haves for a site with any amount of traffic. These might be gravy, but without it the meal is incomplete.

Maintaining a blog-style application is even more work. XSS, SQL injection, security, spam. The list goes on and on.

Sure, coding a blog is fun and easy, and something every developer should do at least once. Developing a blog application is much more work, and something that will never be truly complete. Maintaining that application will be far more work than you ever planned.

So the question has got to be: is it worth it?

For me - and obviously lots of other developers - the answer is a resounding no. Our time is better spent creating something new than re-inventing the wheel.

As for David’s comment about PHP4, by all accounts the code for WordPress is not pretty - I’ve been advised not to look under the hood - but that’s not my problem. I do wonder why no-one has managed to re-create WordPress in one of the Web 2.0 frameworks though. Is it because they can’t, or just because they want to try to be different?

This post was written using PyRoom - writing without distractions.

Tags: , , , ,

2 Responses to “Why developing your own blog software isn’t always a good idea”

  1. Adam Pigg says:

    Yeah, i agree. My own blog runs on my own home brewed software, which i definitely did for the reason ‘every developer should do at least once’. I wouldnt do it again, but it serves my modest needs. And with rss, comments, captchas and sql escaping it meets most requirements. Oh, and it fits in with the style of my website.

  2. Hi,

    Yes - I used to run my website from PyBlosxom, which as ‘bad’ enough (and small enough that I understood what it did)… of course it wasn’t the easiest to maintain/modify, and eventually moved to Drupal.

    At the moment, I just want something that works [tm]

    I wouldn’t be surprised if there was a PHP5 ‘fork’ of wordpress sometime soon - not that I follow it’s community at all, but there are a lot of components (e.g. Zend Framework) that could be used to accelerate the development of a ‘rewrite’… of course they’d almost certainly loose the backwards compatiblity/old plugin support.

    (I’ve never used Wordpress, and only once looked at it’s code, and wasn’t impressed)

Leave a Reply