# 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.

![Cheat sheet: Smells of Combining: A Class for Every Combination](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/6de7fa5b884446628237bf5b70e75c21.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: Class Explosion, Composition over Inheritance, Decorator Pattern, Null Object Pattern, OOP, software-development
- Author: Gregor Dzierzon
- Updated: November 17, 2026

Source: https://www.ask-codey.com/cheat-sheets/dp-smells-of-combining-cheat-sheet
