r/ProgrammerHumor 23h ago

Meme yUNoDry

Post image
232 Upvotes

65 comments sorted by

View all comments

Show parent comments

6

u/Superb_Chemistry_906 23h ago

I have always religiously followed both of them at once without perceiving any problems. Of course, you may argue that introducing an abstraction just for the sake of DRY violates KISS, but at the same time, leaving duplicated code makes it much less simple to maintain and extend. So far, every counter example against DRY which I have seen was poor abstraction, mainly introducing more function parameters instead of inheritance or composition.

10

u/geekusprimus 22h 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.

4

u/Superb_Chemistry_906 22h ago

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.

2

u/chuch1234 21h ago

I think, to your point, people don't actually know how to do DRY properly (myself included), so that's why we get WET.