Refactoring - Good or Bad?
October 10, 2008
If you're anything like me, you go to make a change to some code you wrote a year ago and wince. I want to drive right in and get rid of my horrible clunky old code and replace it with my nice new shiny code. The problem is that although this will give me a warm glow inside, it isn't actually going to make my application work any better. Sure it might be a bit faster, have improved maintainability and comply with my current best practice; but that's just it; it will be my current best practice and it probably seemed maintainable when I wrote it. The chances are that in a years time I'll open up the same script and wince!
I don't really have a point that I'm trying to make. It just seems to me that often it is better to stick with our old code and just tweak it rather than rewrite large sections. Of course, if you are making radical changes then it makes sense, but when time is money then maybe it is not always the right thing to do. Any thoughts?
- Posted in:
- ColdFusion
- Off Topic
2 comments
Leave a comment
If you found this post useful, interesting or just plain wrong, let me know - I like feedback :)





Just my 2cents
Comment by Dan Vega – October 10, 2008
In reality it's going to depend on how tight the schedule is!
Comment by John Whish – October 13, 2008