Here I started a list of things to avoid in code.
This is work in progress, I just started in the middle of November 2013. Articles so far:
- Switch statements
- Loop-switch sequences, an unorthodox use of switch statements
- (Avoid) most code comments
- Mountains, a symptom of nested conditional logic
- Shortenened names for identifiers (e.g. “cust”, “param”), such as the names of variables, methods and classes
A big catalogue of things to avoid can be found in “Bad Code Smells” chapter of Martin Fowler’s “Refactoring” book.