The Joy Of Deleting Code

March 29, 2007 Alex Chaffee


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.

This reminds me (Alex) of my favorite quote about writing: “Murder your darlings,” said by Sir Arthur Quiller-Couchor was it..?

About the Author


More Content by Alex Chaffee
A Different Take on Startup Incubation
A Different Take on Startup Incubation

About a year and a half ago, Pivotal Labs started a new practice, focused on product-led startups. It's not...

Ruby Puzzler
Ruby Puzzler

I was just sitting around my living room listening to NPR, and heard the following Car Talk puzzler: ...


Subscribe to our Weekly Newsletter

Thank you!
Error - something went wrong!