Code Smell 14 - God Objects
An object that knows too much or does too much.
- Split responsibilities.
- Follow Single Responsibility Principle.
- Follow The Boy Scout Rule.
Linters can count methods and warn against a threshold.
Libraries were fine in the 60. In Object-Oriented Programming we will distribute responsibilities among many objects.
Also Known as
- Large Class
This article is part of the CodeSmell Series.