Refactoring Models

Learn about refactoring models, refactoring importance, and break up complexity.

In a TDD process, much of the design takes place during the refactoring step. Much of this design happens under the guise of cleanup: looking at parts of the code that seem overly complicated or poorly structured and figuring out how best to rearrange them.

Refactoring importance

Just because the refactoring step includes cleanup doesn’t mean we can skip this step when we’re in a hurry. Don’t do that. Refactoring is not a luxury. Refactoring is where we think about our code and how best to structure it. Skipping refactoring will slowly start to hurt, and by the time we notice the problem, it’ll be much harder ...