This is a  great article that lists some very common coding mistakes that should be avoided as well as alternatives..