Kotlin: lazy language for lazy people
summary
Explains concrete Kotlin features: property delegates and by lazy versus the thread-safe lazy() overload, lateinit and Delegates.notNull tradeoffs, Java streams versus reusable Kotlin generateSequence and buildSequence behavior, and how buildSequence uses coroutines to yield values. Refactors a prefix trie to return a lazy iterator so requesting the first two matches only evaluates those nodes, changed three lines of code, fixed a prior eager run that did 660,142 iterations and crashed.
AI-written summary · about
chapters (13)
- 0:00Start
- 2:25Lazy evaluation
- 2:52Kotlin loves lazy people
- 5:47Lazy initialization (use delegation)
- 9:55Use Case - Logging
- 10:56Java Spring example
- 11:11Kotlin Spring example
- 17:25Lazy Collections operations
- 25:36Lazy with Coroutines
- 28:46How it works?
- 31:57DEMO LINK
- 34:05Laziness benefits
- 34:28Laziness drawbacks








