News for hackers. Stuff that matters.
Re:DRY is an over-rated programming principle? by Ideabile on Thursday July 07, 2022 @06:09AM (#32012013)
Thanks for this article, I was just talking with my colleagues about it. And didn't find something simple to share with them, so this was just what I needed.

I think DRY is a good thing in some cases, but you should careful consider when something is worth to DRY and when rather WET gives you the best tradeoff for isolation.

My metrics to decide is to stick in favour of the Single Responsibility Principle. If DRY means compromising it, most likely is not worth it.

There are no comments on this comment yet.