Skip to content

Baby step refactoring

Egga Hartung edited this page Sep 17, 2016 · 4 revisions

Sa, 16:30, Clovis, Egga Hartung

SOLID Principles

Flipchart

We talked briefly about the SOLID principles to write code that can be refactored more easily.

Mentioned while talking about SOLID principles: Barbara Liskov

Racing Car Katas

Flipchart

A very good exercise to recognize and fix violations of SOLID principles are the Racing Car Katas.

No Mouse

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).

Parallel Change

Flipchart

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.