Web apps & software

What is refactoring?

Refactoring is the process of improving the internal structure of existing code, making it simpler, clearer and easier to change, without changing its external behaviour.

Why it is worth doing

Code that is easy to read and change lets teams add features faster and with fewer bugs. Refactoring repays technical debt gradually instead of waiting for a costly rewrite.

Doing it safely

Automated tests confirm behaviour stays the same; changes are made in small steps; and refactoring is done close to the work that needs it, so the benefit is felt quickly.

Questions, answered

No. Refactoring improves code step by step; a rewrite replaces it, which is riskier and usually slower than expected.

No. Users should not notice any difference, except perhaps faster future improvements.

By the Stegnor team · Updated