Top
Best
New

Posted by rafaepta 14 hours ago

Prefer duplication over the wrong abstraction (2016)(sandimetz.com)
458 points | 310 commentspage 9
vcryan 11 hours ago|
The sweet spot is really duplicating the wrong abstraction: I see you Claude!
johnwheeler 11 hours ago||
These are not mutually exclusive.
slopinthebag 13 hours ago||
I prefer the go mantra: a little copying is better than a little dependency.

Abstraction is a vague term when used here. Is a shared function an “abstraction”? It’s more like implementation hiding, maybe some data hiding. But you definitely have a dependency on it now.

Acronyms like DRY are for beginners. Once you get good you know when to break the “rules” (and when not to).

atmanactive 13 hours ago||
No it's not.
monkamonme 1 hour ago||
[flagged]
aplomb1026 12 hours ago||
[flagged]
gilleswr 10 hours ago||
[flagged]
meerita 12 hours ago||
[flagged]
SameerVers3 10 hours ago|
[dead]