The Observer design pattern allows one or more objects to get notified whenever a subject's state changes. But do we really need to implement an observer in Kotlin? In this video, we'll see a traditional version of the Observer Pattern, and then we'll see how we can improve upon it with Kotlin's language and library features.
✨ New to Kotlin? Start your journey here: https://typealias.com/start/
... or pick up the PDF Edition: https://shop.typealias.com/
🚀 Get the inside scoop on everything I'm working on - join my new email newsletter!
Sign up here: https://newsletter.typealias.com/
👨🏽💻 Source code for today's video:
https://github.com/typealias-studios/...
📚 Chapters
00:00 Introduction
00:28 Example Code
01:54 Traditional Observer Pattern
03:50 Property Delegates
07:34 Flow API
11:24 Wrap-up