... | ... | @@ -6,7 +6,7 @@ |
|
|
Next: [Comments](smells-and-heuristics-comments)
|
|
|
|
|
|
# 17 Smells and Heuristics
|
|
|
<br>
|
|
|
|
|
|
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.
|
... | ... | |