Levels of Abstraction
Every function should operate at a single level of abstraction. When a function calls high-level helpers and does low-level work inline, the reader has to constantly shift mental gears. The fix is always the same: give the low-level block a name.
Terms
Composed Method (Kent Beck, Smalltalk Best Practice Patterns, 1997) A public method that reads as an outline of steps. Each step is a call to a private method with a clear name. The public method states what
[Description truncada. Veja o README completo no GitHub.]