Large Class

This smell occurs when a class is large containing too many variables and methods. A large size class is not only difficult to understand but also leads to other smells. As Fowler says "...a class with too many instance variables, a class with too much code is prime breeding ground for duplicated code, chaos, and death."

Related smells: Insufficient Modularization God Class The Blob Too Large Packages/Subsystems

Reference

M. Fowler, “Refactoring: Improving the Design of Existing Code”. Addison-Wesley, 1999.


Design Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.