Smells of Combining: A Class for Every Combination

When every mix of features gets its own class (YogaClassWithReminderAndWaitlist), or every missing piece gets its own null check, each new feature doubles the classes or adds a check to every screen; the smells of combining come from building mixes by copying instead of from small parts, and their cures put the parts together.

By

Updated

Cheat sheet: Smells of Combining: A Class for Every Combination
Category
Data Structures
Level
Journeyman
Tags
Class Explosion, Composition over Inheritance, Decorator Pattern, Null Object Pattern, OOP, software-development