News for hackers. Stuff that matters.
Re:Don't DRY Your Code Prematurely by Guvante on Thursday May 30, 2024 @03:49PM (#40527874)
DRY is IMHO a maintenance thing.

If "I don't want to maintain three copies of this" is your reaction unifying likely makes sense.

But that assumes the maintenance would be similar which is obviously a big assumption.

Re:Don't DRY Your Code Prematurely by coffeebeqn on Thursday May 30, 2024 @05:03PM (#40528695)
DRY often gives you the wrong or a leaky abstraction and creates dependencies between sometimes unrelated pieces of code. It’s got tradeoffs rather than being a silver bullet for improving codebases.

Having 0% DRY is probably bad, having 100% DRY is probably unhinged

Re:Don't DRY Your Code Prematurely by kitkat_new on Thursday May 30, 2024 @08:01PM (#40530143)
> sometimes unrelated pieces

you are using it wrong