2/11/2008

DRY as in Dry Bugs

We talk of DRY code as in Don't Repeat Yourself. Instead, we should talk in terms of DRY bugs.

For every piece of code you copy you are also copying a number of bugs. Depending on your propensity for adding bugs to you code you may be copying lots of bugs or just the occasional one. In either case, bugs are really expensive, so stop it.

You may want to say, "It's faster to copy working code than to refactor it into a common module". We have heard it all before and you are deluded. Besides, DRY bugs are easier to pin and mount

Do not duplicate your bugs.


No comments: