Code Smells

This document gives actual examples of code smells -- characteristics of code that are not bugs, but may indicate an underlying problem in the implementation. It is based on the code smell list compiled at Coding Horror.

Example (replace header title with the name of the code smell)

A brief summary of the code smell, described in plain language with a reason why it indicate a problem.

if( example == "good" )
{
  //do nothing
}