This post is just a quick rant, brain dump, food for thought or what ever.
If you ever need to make changes to existing code base, and you need to remove old code. DELETE IT, don't EVER COMMENT IT OUT AND LEAVE IT FOR THE NEXT GUY (yes, I am trying to yell)
I don't know how many times I stumble across dead, commented out code. And every time I do, I wonder, is this code really needed? Was it left here for a reason? Should it be in use?
I know that when I do stumble across dead, unburied code, I bury it. If at some point in the future that code is needed again, that is what source control is for.
This post may appear to be obvious to many, but I still come across this scenario all the time.
Till next time,
11-14-2007 3:38 PM