refactoring
n.n. the process of cleaning up computer code to make it easier to read and maintain. You do this to improve the internal structure of the software without changing how it actually works for the user.
n. the process of restructuring existing computer code by changing its internal structure without altering its external behaviour. Often involves simplifying complex logic or removing redundant sections to improve maintainability.
The team spent the afternoon refactoring the login system.
After the initial launch, the developers prioritised refactoring the legacy code to ensure the platform could handle more users.
While refactoring does not add new features to a software product, it is essential for reducing technical debt and preventing the codebase from becoming too fragile to modify.
Formed from the prefix re-, meaning again, and the verb factor, in the mathematical sense of decomposing an expression into a product of simpler components. The term emerged from the Smalltalk programming community in the 1980s and was later formalised by William Opdyke and Martin Fowler.
Etymology adapted from Wiktionary, available under CC BY-SA 4.0.
Commonly used as a gerund noun in software development contexts.
Last updated July 22, 2026