Other forms: refactoring, refactored
To refactor is to rewrite code so it reads better without changing what it does. Refactor the module, a large refactor, refactor before adding to it.
The behaviour staying the same is what makes it a refactor rather than a rewrite, and tests are how you know. Refactoring first is usually cheaper than adding to something tangled.
1verbrefactorTo rewrite code so it reads better without changing what it does.
“He spent a day refactoring before touching the feature at all.”
refactor is a rewriting.
Proto-Indo-European
*dʰeh₁-
Middle English
factour
English
factor
English, today
refactor
Built from
From re- + factor. factor comes from Middle English factour. Middle English factour, from Middle French facteur, Anglo-Norman factour, and their etymon Latin factor (“a doer, maker, performer”), from factus (“done or made”), perfect passive participle of faciō (“do, make”).
Etymology from Wiktionary, CC BY-SA