Mark and I were just waxing poetic about how great it is to delete code, especially code you just wrote. We pity the attitude of people who think deleting code is somehow wrong — they feel so guilty that they won’t even delete it right off, they just comment it out, and then check it in… We came up with the following simile:
Writing code is circling your way around a solution, like a dog on the hunt. When you’re done, the final solution is going to be a lot smaller than your original perimeter.
About the Author