10 Kotlin Tricks in 10 ish minutes
summary
Ten concrete Kotlin tricks: inline functions remove anonymous-class lambda allocations so performance-sensitive Android code avoids GC churn; the lazy delegate uses double-checked locking by default but accepts modes to turn off locking or use publication; the Elvis operator combined with a thrown exception returns Nothing, letting the compiler infer a non-null type; built‑in let/apply/run/also reduce volatile reads; deprecation annotations can include automated Alt+Enter replacements and error/hidden levels; @JvmName solves erased-generic overload conflicts.
AI-written summary · about
chapters (12)
- 0:00Intro
- 0:28Why Kotlin?
- 3:36Explosive Placeholders
- 4:33Semantic Validation
- 5:59Anything and Nothing
- 8:55Let
- 10:50Multiline String Literals
- 11:50Lazy but Speedy
- 13:12Code Block Measurement
- 13:49Deprecation Levels
- 15:04Deprecation Replacements
- 15:59Erasing Erasure








