News for hackers. Stuff that matters.
Re:Software Engineering at Google (2017) by chucksmash on Friday January 04, 2019 @09:03AM (#18824070)
Working Effectively with Legacy Code recommends just this idea. They call it scratch refactoring. Refactor without a lot of forethought to see how the system works, then just throw away your changes but keep your newfound understanding.
Re:Software Engineering at Google (2017) by lugg on Friday January 04, 2019 @01:59PM (#18826648)
This is effectively "it." But I do like to branch off the more useful refactors into their own commits.