Hacker News new | ask | show | jobs
by lock-free 2001 days ago
Not sure if anyone else shares this anecdote, but I've noticed the most DRY-hard programmers tend to be the most resistant to things like functional programming, monads, and other generic approaches which are the ultimate realization of DRY. And often the most inscrutable.

Another anecdote on DRY: I'm currently refactoring two interrelated systems that share a single function, and very horrible bad things happen if the systems disagree on the return value of that function. However sharing the same code is more complex than duplicating it and this has a nontrivial impact on how the systems are distributed. So today I'm undoing the original work I did to make it DRY - turns out that sometimes, you need to copy/paste.

1 comments

Is it DRY if you use rsync instead of copy&paste?