When and Why to Refactor

#56 - Refactoring–The Discipline for Writing Good Code - Christian Clausen

Topic 3 of 18

Published Sep 20, 2021 · Clip 9:20–10:10 (0:50)

Christian explains that the decision to refactor is linked to how well you can predict the software's future. Code under experimentation shouldn't be refactored — validate the business case first — and sun-setting or end-of-life code shouldn't receive refactoring effort either. Refactoring must pay for itself through easier, cheaper maintenance, fewer bugs, and higher quality.