Why You Should Use The Decorator Pattern
How the decorator pattern lets you layer on logging, counting, and other cross-cutting concerns without modifying classes that are already working just fine.
How the decorator pattern lets you layer on logging, counting, and other cross-cutting concerns without modifying classes that are already working just fine.
Void methods hide what your code is doing. Here's why they're a design smell and what to use instead.