Idiomatic Kotlin
summary
Covers concrete idioms that make Kotlin both shorter and safer: use of top-level and extension functions (Spring’s JdbcTemplate Kotlin extensions move lambdas to trailing position), scope helpers like apply/let/also for initialization and null checks, and null-safety tools including Elvis and safe-call plus safe casts. Shows a real Advent of Code solution rewritten with standard-library pipelines (map → reduce → sumOf) to replace loops. Mentions Kotlin 1.7.20’s experimental range-until and recommends IntelliJ IDEA for the workflow.
AI-written summary · about
chapters (12)
- 0:00Idiomatic Kotlin intro
- 7:14Top-level and extension functions
- 16:27Java APIs in Kotlin
- 17:10Scope functions and lambdas
- 25:44Named parameters and defaults
- 29:22Expression body syntax
- 35:02Null safety in Kotlin
- 41:09Safe casting and types
- 42:14Ranges and their practical use cases
- 47:13Functional style in Kotlin
- 53:18Kotlin 1.720 features
- 53:40Q&A








