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 ...|