... | @@ -7,4 +7,14 @@ Next: [Comments](smells-and-heuristics-comments) |
... | @@ -7,4 +7,14 @@ Next: [Comments](smells-and-heuristics-comments) |
|
|
|
|
|
# 17 Smells and Heuristics
|
|
# 17 Smells and Heuristics
|
|
|
|
|
|
In his wonderful book Refactoring,1 Mactin Fowler identified many different "Code Smells." 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. |
|
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.
|
|
\ No newline at end of file |
|
|
|
|
|
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.
|
|
|
|
This list is meant to be read from top to bottom and also to be used as a reference.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Next: [Comments](smells-and-heuristics-comments) |
|
|
|
\ No newline at end of file |