Refactoring

Refactoring is changing the structure of code without changing its external behavior.

Two types:

  1. Floss refactoring (interleaved refactoring) — small cleanups performed alongside feature work.
  2. Root canal refactoring — massive, dedicated restructuring changes.