Design Patterns with Kotlin
summary
Shows concrete conversions of Gang of Four patterns to Kotlin using IntelliJ’s Java→Kotlin converter and Kotlin→Java decompiler, demonstrating fewer lines and real tradeoffs: object singletons replace classic patterns and compile to lazy, reflection-safe Java; default parameters often remove the need for builders; nullability forces use of the Elvis operator; delegates.observable and reified generics replace boilerplate; Dagger integration works via generated code. Presents specific code-level differences and gotchas rather than high-level promises.
AI-written summary · about
chapters (15)
- 0:00Start
- 4:08Tools
- 4:56Show Coupling by Code
- 5:29Creational Patterns Singleton
- 9:25Factory Method
- 11:35Abstract Factory
- 13:15Inline Function
- 14:51Builder
- 19:02Structural Patterns
- 21:35Pattern Adapters
- 23:03Behavioral Patterns
- 23:23Strategy Pattern Example
- 24:27Observer
- 25:20Delegates Observable
- 26:49Pendens Injection
related talks
19m9 Java Patterns that Kotlin made obsolete
01h 03mHow Kotlin makes your Java code better
39mHow to Kotlin - from the lead Kotlin language designer
43mFrom Effective Java to Effective Kotlin
39mAdvanced Kotlin
52mPowered by Kotlin
49mImperative, declarative, object oriented, functional: four of a Kotlin kind
44mAdvanced Kotlin
