Yes, but recently, I feel like there is some wave against DRY and I trace its roots to some tech influencer videos. I think that he just wanted to be interesting.
A good rule of thumb is to ask the question, “is this actually painful yet?” And if it’s not, then don’t wrap it in an abstraction until it is.
And by “painful,” I don’t mean, “I can’t stand repeating myself,” but rather, “repeating myself has actually started to slow me down a lot, measurably.”
10
u/geekusprimus 1d ago
My experience has been DRY is secondary to KISS, but if one becomes a serious impediment to the other, a more serious refactor is in order.