Programming FundamentalsIntermediate
Refactoring
Pronunciationree-FAK-ter-ing
Definition
Improving the structure of code without changing what it does, so it is easier to read and change.
Where you hear it
Code reviews, sprint planning, and technical-debt discussions.
Examples
Let's refactor this module before adding new features.
The tests passed before and after the refactoring.
Common mistake
Refactoring without tests. If you cannot prove the behavior is unchanged, you are just rewriting.
Keep exploring
More in Programming Fundamentals