Tag

DRY

1 stories

Sandi Metz's 2016 rule: duplication is cheaper than the wrong abstraction (sandimetz.com)

The trap is a sunk-cost spiral. Each near-miss requirement gets bolted onto the abstraction rather than rejected, until the code is a tangle of booleans nobody can reason about. Her slogan: "the fastest way forward is back." Inline it into every caller, prune dead branches, rebuild.

The thread split on whether this survives real teams. One camp says it gets weaponized to bless permanent slop; another calls the framing a category error. And when a model maintains the copies, sameness that drifts silently becomes its own hazard.