Re-Editable Code

khinsen via matrix As a counter-argument to D.R.Y. it's worth looking at Donald Knuth's arguments for "re-editable software". Unfortunately all I have seen from him is a paragraph in this interview: informit

> I (Donald Knuth) also must confess to a strong bias against the fashion for reusable code. To me, "re-editable code" is much, much better than an untouchable black box or toolkit. I could go on and on about this. If you’re totally convinced that reusable code is wonderful, I probably won’t be able to sway you anyway, but you’ll never convince me that reusable code isn’t mostly a menace.

The idea is that keeping code short and simple, such that it can be copied-pasted-then-edited in many situations, may well be more valuable than D.R.Y.