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.
I’ve been using this tool for some time on a number of projects. SlowCheetah allows you to transform your config files at build time based on the build type. So when you do a Debug build, you can include values that are meant for your dev environment, while at the same time doing a Release build will use values meant for production.