... | ... | @@ -9,7 +9,7 @@ Previous: [Introduction](smells-and-heuristics-introduction) | Next: [Comments]( |
|
|
|
|
|
In his wonderful book [Refactoring](http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672), [Martin Fowler](http://en.wikipedia.org/wiki/Martin_Fowler) identified many different "[Code Smells](http://en.wikipedia.org/wiki/Code_smell)." The Iist that follows includes many ofMartin's smells and adds many more ofmy own. It also includes other pearls and heuristics that I use to practice my trade.
|
|
|
|
|
|
I compiled this list by walking through several different programs and refactoring them. As I made each change, I asked myself why I made that change and then wrote the reason down here. The result isarather long list ofthingsthat smell bad to me when I read code.
|
|
|
I compiled this list by walking through several different programs and refactoring them. As I made each change, I asked myself why I made that change and then wrote the reason down here. The result is a rather long list of things that smell bad to me when I read code.
|
|
|
|
|
|
This list is meant to be read from top to bottom and also to be used as a reference.
|
|
|
|
... | ... | |