Superpowers of Kotlin Delegation
summary
Covers Kotlin’s interface and property delegation with concrete patterns and pitfalls: uses notNull delegate and lazy for lateinit and lazy init, observable/vetoable for change tracking, and map-as-delegate (which copies the map at delegation time, causing stale data unless a mutable map is cleared). Shows practical Android libraries (view-binding and shared‑preferences delegates, unit‑test friendly) built and used successfully, mentions Kodein-style DI and the provideDelegate hook for advanced delegation.
AI-written summary · about
chapters (12)
- 0:00Start
- 7:17Interface Delegation
- 8:05Creator Pattern
- 10:07Property Delegation
- 12:38What Is Property Delegate and Usage Compiled to
- 14:45Standard Library Delegates
- 15:49Not Null Delegate
- 16:59Lazy Initialization
- 19:35An Observable Delegate
- 29:40Changing Interface Functions in Properties
- 30:39Preference Binding
- 34:26Functions








