Code Smells to Avoid
About
Importance of Identifying Style-Based Code Smells
Common Code Style Smells to Avoid
1. Long Methods
2. Inconsistent Indentation or Spacing
3. Excessive Inline Comments for Obvious Code
4. Magic Numbers and Strings
5. Poor Naming Conventions
6. Duplicated Code Blocks
7. Empty Catch Blocks
8. Deep Nesting
9. Large Classes (“God Classes”)
10. Unnecessary Comments or TODOs Left Behind
11. Overuse of Static Utility Methods
12. Non-Descriptive Test Names
Last updated