Take your Kotlin to the next step, abandon what you’ve learned (in Java)
summary
Kotlin developers keep Java habits and that slows progress; concrete changes shown include using top-level consts instead of companion objects (1500-person poll), preferring objects and properties in interfaces, writing small custom delegates (toggle‑on‑first‑access, byDisposable) instead of boilerplate, and using invoke operator and extension functions to hide mapping/creation logic. Tests use reified inline generics to load JSON fixtures. Neuroscience cited: reading code activates language areas, so unlearning needs new mental models, repeated practice, and positive reinforcement via constructive PR feedback.
AI-written summary · about
chapters (15)
- 0:00Introduction and motivation
- 1:03Evolution and mindset shift
- 4:13Java legacy and Kotlin adaptation
- 8:05Constants and top-level declarations
- 10:34Unlearning and relearning
- 13:44Operator overloading and invoke
- 16:31Neuroscience of creativity
- 19:58Naming conventions and brain pain
- 23:08Properties and interfaces
- 25:38Delegates and lazy initialization
- 29:51Extension functions and readability
- 33:41Thinking between boxes
- 34:23Advanced generics and inline functions
- 36:50Habits and team adoption
- 38:40Encouraging Kotlin growth
