Do you use #if DEBUG in your code? The maintenance developer that comes after you gives zero foiks about what that's for, write code like this:
#if DEBUG
Log.DangerousExpensiveLogging()
#else
if (Env == "PROD"){
throw AppException("Don't deploy if DEBUG mode")
}
#endif
#Endif
Comment by MatthewMartin on What is the downside to Conditional Attributes as opposed to #if/#endif?: Reading this... http://bit.ly/cHURyP
What is the downside to Conditional Attributes?: My code base has a lot of #if DEBUG/#endif statements that mostly... http://bit.ly/9vHuoc