-
Notifications
You must be signed in to change notification settings - Fork 0
Baby step refactoring
Sa, 16:30, Clovis, Egga Hartung
We talked briefly about the SOLID principles to write code that can be refactored more easily.
Mentioned while talking about SOLID principles: Barbara Liskov
A very good exercise to recognize and fix violations of SOLID principles are the Racing Car Katas.
Known from coderetreats is the constraint "No Mouse". It forces developers to learn and assign important shortcuts in their IDE or text editor. Especially the refactoring tools allow to do refactorings in baby steps. When each refactoring is broken down into small, atomic steps the build never breaks. We can release the code at any time (for example when a bugfix needs to be shipped quickly). Also it minimizes the risk of resetting the refactoring because "everything is broken" (big bang refactorings).
A very useful technique from the book Refactoring to patterns is the parallel change. Where a seemingly breaking change is implemented without ever having a failing test.