Duplicate:
What are Code Smells? What is the “best” way to correct them?
I was just curious about what kind of items cause developers to go "Oh, this code smells off", either language-specific or -agnostic. I know some that personally make me flare my nostrils are
- Nested ifs (low readability, probably too complex);
- Pointers (do you really need the extra hassle?);
- Badly named methods.
Anyone else got additional dislikes, pet hates, or just items you have noticed have a definite correlation with code in need of refactoring?