When you refactor during a change, you make the change bigger.
When you refactor before the change, you make the change smaller.
- in a talk by Jason Swett
When you refactor during a change, you make the change bigger.
When you refactor before the change, you make the change smaller.
- in a talk by Jason Swett
@jessitron When you refactor without a real reason, you mostly add bugs.
Stories from the trench…
@jessitron related Kent Beck:
“make the change easy, then make the easy change”

Application refactor: business gets 6-figure check and progress updates and no visual changes but 100% system operation improvement
Business: I want my money back and burn the progress updates
https://giphy.com/gifs/foilarmsandhog-foil-arms-and-hog-fah-conor-mckenna-ej4fI1GF5M07nQbRLo
Discover & share this Foil Arms and Hog GIF with everyone you know. GIPHY is how you search, share, discover, and create GIFs.
@Jkw oh god no, not another task. just do them in separate commits.
Discover the need while making the change. Stop making the change (git reset), do the refactor, commit (maybe multiple times), then make the change. Tell people in the PR which commit to look at closely.
Sadly github doesn’t work well with stacked diffs, so this is the best we can do