Here is a list of tips to writing good code.
I have seen some horrible code where people have left several different versions of methods that aren't called. Or perhaps one version is called and several others aren't.