DEV Community

Discussion on: Dead code - alive problem

Collapse
 
gzg profile image
Ekin Öcalan

Uncle Bob agrees. :-) Quoting the book Clean Code:

It makes me crazy to see stretches of code that are commented out. [...] That code sits there and rots, getting less and less relevant with every passing day. It calls functions that no longer exist. It uses variables whose names have changed. It follows conventions that are long obsolete. It pollutes the modules that contain it and distracts the people who try to read it. Commented-out code is an abomination.

Just use any version control system and then delete the code.