I have just read a great article on code reuse. I always thought that the term DRY, as in Don’t Repeat Yourself, was missing something – that it didn’t quite capture all of the nasty habits that some developers xzibit. Well, the afore mentioned article has a much better term: Reduce, Reuse, Recycle. The refuse recycling metaphor is a perfect fit, I like it a lot – it even allows for the fact that sometimes we don’t recycle stuff like bottle lids, because it is not efficient to.
So I guess this makes what I would consider “good code”, to be part of something that I am going to call Green Development. Lightweight, low on resources, re-useable and recyclable. Author’s note: Does this make Microsoft global warming?
Now, if only there were some way to tag developers “wheelie bins” to see how much “non-recyclable” code they were producing and sending to the code base “land fill”. They’re just creating a problem for future generations you know.