
attractive, usable web applications
Richard's Blog - Design, coding and life in Japan
Refactor not Rebuild your Web App!
Submitted by Richard on Thu, 10/29/2009 - 10:29Having been involved in large website/web app development, when there are frustrations in the present system it is always tempting to say lets rebuild it.
But let's rethink this. Of course sometimes there is code there that you are embarrassed to show others, of course it could look prettier on the outside and in. It is easier to write code than to read it - especially other developers.
But bear this in mind:
- You already have an application that works
- You nearly always underestimate the amount of time it takes to rewrite
- You forget about features that you have tucked away in the back
- You have a huge amount to prove when it goes live
- Migrating data can be a huge job
- The main problem that you hadn't written tests is still often ignored
What I am suggesting:
- Write tests for your present application
- Break up the jobs that need refactoring into sections
- Clean up code section by section running tests along the way
- Add new functionality into the test then add to code section by section
Why is this good:
- No new servers
- Tested code
- You managed to get rid of that embarrassing sluggish code
- Nothing is forgotten
- Takes less time
- You make the most out of the hard work that was originally put in
- No need to prove yourself
Tags:
Recent Blog Posts
- Why you should use Rails 3 and not Django 5th Sep 10, 12:28
- Doctrine 2 and why you should use it! 29th Jul 10, 15:23
- How to localize your main blog listing page using Drupal 26th Jun 10, 11:46
- Creating Rails like template helpers in Django 24th Jun 10, 22:01
- Error: No module named messagesdjango.contrib.contenttypes 22nd Jun 10, 22:00
Post new comment