News for hackers. Stuff that matters.
Re:Why do so many developers get DRY wrong? by rileymat2 on Friday February 14, 2020 @06:07PM (#22331355)
More often than not duplicate code is duplicate knowledge.

It often is an implicit business rule that links several statements together or a system requirement like freeing db connections and locks in the right order after use.

Re:Why do so many developers get DRY wrong? by loopz on Friday February 14, 2020 @06:32PM (#22331510)
DRY skips the part about dependency management: Will tying these parts together make sense for future readability, changability, or not? Often it is wise to be clear what and how to separate and encapsulate.

If there is only one right way, there is no reason for change or changing together, so is not shared knowledge.