Thank you for reading the article. I do agree that legacy code is in many cases waste of time. But, on the other hand, isn’t it a lesson enough that you wasted 3 hours on the dead code?
So, dead code is a waste of time. Yes, this is not something new, and we already know this, but it rose the question WHY is there too much dead code? And how can we remove that dead code? Can we get approval from management for some code clean up?
I bet you wouldn’t let dead code remain in code base in your new project. This is what I’m talking about. You now know what dead code causes. There will never again be situation where you will react like “don’t delete it. let’s just keep it like that in case we need it later”.