In a TDD process, much of the design takes place during the refactoring step. A lot 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.
Just because the refactoring step includes cleanup doesn’t mean you can skip this step when you’re in a hurry. Don’t do that. Refactoring is not a luxury. Refactoring is where you think about your code and how best to structure it. Skipping refactoring will slowly start to hurt, and by the time you notice the problem, it’ll be much harder to clean up than if you had addressed it early.
|Prescription 13||Refactoring is where a lot of design happens in TDD, and it’s easiest ...|