That’s an interesting point, Anton. I tend to agree with you.

While working on a book on the matter, I noticed that many “classical” design patterns resemble one another. “Head First Design Patterns” also notes this many times. And the distinction is the intention, many times.

You can even convince me that what I describe here is actually a proxy. But when writing this example, I was thinking more of a “Starbuzz Coffee” from the same “Head First Design Patterns”, where “decorations” are the toppings on the coffee.

Solutions Architect @Depop, author of “Hands-on Design Patterns with Kotlin” book and “Web Development with Kotlin” course

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store