2 ms·
I am always wary of any extreme opinions. DRY is yet another tool. Skilled hands will be able to judge when to use it and when to keep a little duplication to
by lmilcin 6y ago
I am always wary of any extreme opinions.
DRY is yet another tool. Skilled hands will be able to judge when to use it and when to keep a little duplication to preserve simplicity and legibility.
I see frequently developers going to great lengths to avoid duplication of couple of lines of code. In the process, they create much more new code, use half a dozen patterns and make the code more difficult to understand. That's not the ultimate goal.
The ultimate goal is always to keep the code produce more value and this usually is best served by simpler and more maintainable code.