Joel Splosky has a very good and quite long article about “making bad code look bad.”
The concept is this, if you write code that adheres to good standards, then it’s easy for someone to read your code, and more importantly, discover bad practices without digging through all the code line by line to find out if you are doing something wrong.