News for hackers. Stuff that matters.
Re:On DRY and the cost of wrongful abstractions by crdoconnor on Sunday September 18, 2016 @05:24PM (#12527278)
>Yes, this 1000 times! DRY or any pattern/principle is not some sort of universal truth/declaration of ultimate goodness

I think "write the least code", from which DRY is derived from is universal.

It's just in competition with a few other axiomatic principles - typically the rule of least power and loose coupling, which can suffer when DRY is maximized at the cost of everything else.

>We had a policy of only empirically verified DRY. We never wrote code to DRY in anticipation

Can't agree enough with this one. The worst kind of re-factoring is that done in anticipation of future code.

There are no comments on this comment yet.