What you're saying and what the article is saying are two different things. The whole point of the article is not "Don't refactor code"; it's "Never fix a bug and refactor in the same pull request".
It's a matter of focus and intentionality.
It's a matter of focus and intentionality.
'Phase 2 never happens'
Yes, that's probably a sign of poor project management or organisational brokenness. But it's also probably the reality for most people.
> It also misses the point that sometimes refactoring makes it _easier_ to fix the bug, and that a large part of fixing a bug is understanding exactly what's happening with the code, which refactoring can also make easier.
I clicked on this article because it applies to me (I constantly yak shave), but I’m a bit disappointed with how terse it was.