Applying the Decorator Pattern in Kotlin

Опубликовано: 01 Январь 1970
на канале: Dave Leeds
6,123
603

The Decorator Pattern allows us to augment the behavior of an object - without the object itself knowing about it! In this video, we'll start with code that could benefit from this pattern. Then we'll apply the Decorator Pattern using the classic approach as outlined in the original Gang of Four book. Finally, we'll modernize the pattern using some of Kotlin's language features.

✨ New to Kotlin? Start your journey here: https://typealias.com/start/
... or pick up the new Leanpub Edition for offline access and more! https://book.typealias.com/

🚀 Get the inside scoop on everything I'm working on - join my new email newsletter!
Sign up here: https://newsletter.typealias.com/

📺 Watch Episode #1 of the TypeAlias Show Livestream:
https://youtube.com/live/S_JKbmN_A8o

00:00 Introduction
00:40 The Problem
02:13 Classic Decorator Implementation
07:59 Modernized Implementation for Kotlin
11:37 Wrap-up