Defining Refactoring and Good Code

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

Topic 2 of 18

Published Sep 20, 2021 · Clip 6:58–9:20 (2:22)

Christian defines refactoring as changing code without changing what it does, noting that in practice it also implies making code more readable and maintainable, similar to Martin Fowler's framing. He then explains what makes code 'good': local invariants, resilience to bugs, and ease of making the changes the system is expected to need. He cautions that refactoring often makes other kinds of changes harder, so guessing the software's direction wrong can have negative effects.