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
@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