Defining Refactoring

  • The term "refactoring" is often used very loosely by practitioners to mean any kind of code cleanup.

  • Refactoring is about applying small behavior-preserving steps and making a big change by stringing together a sequence of these behavior-preserving steps.

  • During this process, code should NOT spend much time in a broken state.

Refactoring (noun):

a change made to the internal structure of software to make it easier to understand and cheaper to modify without changing observable behavior.

Refactoring (verb):

to restructure software by applying a series of refactorings without changing its observable behavior.

Restructuring (verb):

a general term to mean any kind of reorganizing or cleaning up of a code base that includes refactoring.

Last updated