I See Dead Code

by John

delete

I love to write code. But close behind is my love of deleting code. As much as I like the intellectual and creative challenge required to create new features pruning a code base gives me the same feelings of accomplishment.

Eradicating dead code should be high priority. Dead code can be a barrier to refactoring. Dead code can be distracting when investigating and fixing issues. A side effect of dead code can be additional technical debt as you develop new features–there is no such thing as harmless dead code.

You should make deleting code part of your development culture. Make code deletion a metric. Allow developers a half a day just for deleting code until dead code is minimal. Bestow the title of “Deletist” to the developer who deletes the most code!