I recently looked at some code that I assigned to our version control system at work, and I found that a bunch of it was replaced (that's OK), but the old version was still there, commented out.
I think the guy felt a little "unsafe" about deleting him, and therefore left him there to comment. However, this is not necessary since we use version control. (The old version was wrong, so in the future she will not like it.)
In these stackoverflow questions, the question of whether to leave the old code in this way is a good idea or not:
- https://stackoverflow.com/questions/123423/do-you-leave-historical-code-commented-out-in-classes-that-you-update
- Old code in comments
However, my question is: is there a term for this kind of thing or an “anti-template name” that I can quote when talking with my colleagues about this?
Adrian smith
source share