News for hackers. Stuff that matters.
Re:DRY Is a Trade-Off by kgr on Saturday December 19, 2020 @08:23AM (#25477249)
I'm known as a strong proponent for keeping code DRY (see: https://www.youtube.com/watch?v=S4LbUv5FsGQ), but even I sometimes advocate just copying and modifying code. Sometimes two simple pieces of code are less work/maintenance/mental-burden than one overly generalized/parameterized/complicated piece of code. As the number of copies grows, then the balance of the trade off shifts.

There are no comments on this comment yet.