Recently I took a look at some code I'd committed to our version control system at work, and I found a bunch of it had been replaced (that's OK) but the old version was still there, commented out.
I guess the guy felt a bit "insecure" about deleting it, and therefore left it there commented out. However, that's not necessary, as we are using version control. (The old version was wrong, so it's not like it's going to be needed in the future.)
These stackoverflow questions deal with the question of if leaving old code like that around is a good idea or not:
However, my question is: is there a term for this sort of thing, or an "anti-pattern name" i can quote when talking to my colleagues about it?
"Litter."
This is a term I use personally. As far as I know, it is not a recognized pattern name. But then, I don't recognize any of the others listed here. "Litter" communicates the concept and its worth immediately to those who have not read of the cute, obscure names.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With