3 ms·
TLDR: If you do DRY in moderation it’s great (as the OP explicitly says).
by bjornsing 4y ago
TLDR: If you do DRY in moderation it’s great (as the OP explicitly says).
- DougBTX 4y agoWhat's funny is that DRY was first popularised in the Pragmatic Programmer[0] book, and "coincidental" duplication is explicitly addressed right there on page 34, "not all code duplication is knowledge duplication... the code is the same but the knowledge is different... that's a coincidence, not a duplication." [0] https://www.amazon.co.uk/Pragmatic-Programmer-journey-mastery-Anniversary/dp/0135957052 https://www.amazon.co.uk/Pragmatic-Programmer-journey-master...
- loudgas 4y agoI believe this was added in the 20th anniversary edition to address the overuse of DRY following the original edition.