Large Class

Large classes are difficult to understand and make it harder to change or reuse behavior. Tests for large classes are slow and churn tends to be higher, leading to more bugs and conflicts.

Symptoms

• You can’t easily describe what the class does in one sentence. • You can’t tell what the class does without scrolling. • The class needs to change for more than one reason. • The class has more than 7 methods. • The class has a total flog score of 50.

Solutions

Prevention