Hacker News new | ask | show | jobs
by mcdonje 1094 days ago
TL;DR: DRY

Nice read, though. Very approachable.

1 comments

Yep, but with the added condition of “don’t DRY pre-maturely, that is, before you have duplicated code”.
Which, coincidentally, is also the advice paired with DRY by most competent people (including in the main book people seem to have learned DRY from, The Pragmatic Programmer). Apply it after repetitions, not before.