What was I thinking with that refactoring?

Tonight as I was working on some enhancements to the base framework that I'm using on a couple projects I noticed that the design was kinda...well...terrible.  Rather then take a nice phased approach to refactoring the particular classes that were rather messy I did a mass refactoring.  About  half way through it I stopped and wondered....“what in the world am I doing?”  Since I was so far into it I decided to try and complete the refactoring, if I had failed I would have completely backed out and started over using a phased approach.  After a couple red bars, and a couple additional refactorings I was seeing all GREEN!  Wow, that was one of the less intelligent mass refactorings I'd ever tried, thank goodness I had a full suite of unit tests to validate that I didn't screw something up along the way.

Post a Comment

 
 
Prove you're not a spammer: 
7 + 7 =