After reading Fowler's "Refactoring" for a while, I still often catch myself thinking: "I had to do it in small steps." - even when I did not break my code.
Refactoring in small steps is safe, but takes time. This is a compromise between speed and risk - I try to be strategic in choosing a refactoring method.
Nevertheless: most often I do refactoring in big steps. If I take part of Fowler’s “Mechanics” section and compare how I work, I may find that I often jump two or five steps forward immediately. This does not mean that I am a refactoring guru. My code may remain broken or incompatible for 5-60 minutes.
Are you reorganizing the smaller steps and trying to create indestructible code at shorter frequencies? And: do you succeed?
source
share