Refactor in small, reversible steps
How can you make the work easier to review?
Examples
Worked example
Input
A refactor changes billing logic and renames unrelated files in one commit.
Expected output
Split behavior-preserving changes from billing behavior changes.
Hints and solution
Hint 1
Write down the starting state and walk through one example by hand.
Reveal worked answer
A reviewer can then check each change against a clear purpose and isolate a problem.