Code Smells

Code Smells / Dispensables / Lazy Class

Lazy Class code smell icon

Lazy Class

Lazy Class smells represent classes that are under-used.

If a class is rarely used, it can impede development by increasing the complexity of the codebase. Such a class might be unnecessary, and it’s functionality could be made a part of another class.

Lazy Class is the opposite code smell to Large Class.

Left chevron Right chevron

Books about code smells

Learn to write better smelling code.

Refactoring: Improving the Design of Existing Code book cover

Refactoring: Improving the Design of Existing Code

Code smells: A Predictor of Remarkable Quality Improvement book cover

Code smells: A Predictor of Remarkable Quality Improvement

Clean Code: A Handbook of Agile Software Craftsmanship book cover

Clean Code: A Handbook of Agile Software Craftsmanship

I receive a commission on sales made from the above affiliate links.