Further Deprecating the Decorator Pattern

Posted on
Design Patterns Book

In the last post, we saw ways to replace the decorator pattern for static use cases. If you want to decorate functional interfaces though, there is another whole class of use cases, in which the decorator pattern may not be the most suitable solution. Scenarios Let us consider a few typical scenarios, where dynamic decorations […]