A decorator allows us to dynamically extend the behavior of a particular object at runtime, without needing to resort to unnecessary inheritance. Let me give you a demonstration. An adapter is one of the easier design patterns to learn. The reason why is because you use them in... The observer pattern is easily one of the most popular patterns in the bunch. And, luckily, it's one of the...
Tell, Don't Ask
Nov 4, 2014.. Gettin' Jiggy With Adapt.. 11:13. Sep. 18th 2014. An adapter is one of the easier design patterns to learn. The reason why is because you use ..
The Decorator Pattern
As a general rule of thumb, it's best to tell your objects what to do, rather than asking them for their state, and then deciding what to call next, based upon this output. This is referred to as "Tell, Don't Ask." Let's about it more in this lesson.