News for hackers. Stuff that matters.
Re:DRY is an over-rated programming principle? by atx42 on Thursday July 07, 2022 @11:21AM (#32015241)
I'll claim the only universal truth in programming as in anything is: "moderation", and it's corollary, "there is no silver bullet". They are all rules of thumb, and knowing when to apply them is the most important aspect of rules.

In this case, unit tests are a very reasonable place to "repeat yourself", so you don't have to figure out what it's actually doing. Seeing the code all in place makes life easier.

There are no comments on this comment yet.