Null Object: A Safe Stand-In for Nothing
When a room has no speaker, every routine that plays something has to check for null first, and the one that forgets crashes the morning; a Null Object gives the room a speaker that safely does nothing, so the routines need no checks at all.
Updated

- Category
- Data Structures
- Level
- Journeyman
- Tags
- Code Smell, Null, Null Object Pattern, OOP