What is Refactoring?
Improving the internal structure of existing code without changing its external behavior. It's not rewriting. It's systematically making code cleaner, simpler, and easier to understand, one small transformation at a time.
My perspective
In practice
An ongoing discipline, not a separate phase. With TDD providing the safety net, refactoring becomes a continuous process of keeping the codebase healthy, like tending a garden rather than rebuilding it.