Some Coding Smells


Consider these smells to start with:

Comments - should explain why. Clear code often makes the what comments unnecessary.
Magic Numbers, Literals - hard to follow, maintain
Uncommunicative Name - hard to follow, maintain
Inconsistent Names - hard to follow, maintain
Long Method - hard to  follow, maintain, reuse
Duplicated Code - very common, too much copy/paste makes things harder to maintain and understand
Combinatorial Explosion - too much complexity esp w/r to many similar variations
Conditional Complexity - logical branching and conditions becomes too complex
Large Class - hard to  follow, maintain, reuse
Dead Code - extra code not being used, confuses


back to cs435 weekly assignments