3 ms·
Yep, but with the added condition of “don’t DRY pre-maturely, that is, before you have duplicated code”.
by CaptainFever 3y ago
Yep, but with the added condition of “don’t DRY pre-maturely, that is, before you have duplicated code”.
- Jtsummers 3y agoWhich, 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.