Collapse-Hierarchy

Lazy Class

A recipe app with a one-line formatter, a one-number holder and an empty subclass. Learn to spot classes that don't earn their keep and fold them in without losing good small classes.

November 26, 20268 minutes

Speculative Generality

A delivery app that only ships by bike carries a factory, an abstract Vehicle, a plugin registry and a drone parameter. Learn to spot code built for a guess and remove it.

November 26, 20269 minutes