Re:Prefer duplication over the wrong abstraction
by dozzie on Saturday July 09, 2016 @01:40PM
(#12062426)
> For a long time I've thought that Don't Repeat Yourself is the most important software engineering rule.
It's not. "Don't introduce unnecessary dependencies" and "keep dependency
graph without cycles", "keep things modular" and "all operations in a unit
(function, module, ...) should be from the same abstraction level" are just as
important, if not more, but they're a little more high-level, and thus less
actionable. DRY is just simple to enforce, that's all to it.
It's not. "Don't introduce unnecessary dependencies" and "keep dependency graph without cycles", "keep things modular" and "all operations in a unit (function, module, ...) should be from the same abstraction level" are just as important, if not more, but they're a little more high-level, and thus less actionable. DRY is just simple to enforce, that's all to it.