The Road to Kotlintown
summary
Automatic Java→Kotlin conversion compiles but leaves concrete fixes: remove redundant public, prefer primary-constructor properties instead of separate fields, use lateinit for Android lifecycle-bound views, and replace unsafe !! unwraps with safe-call ?. Examples use Dagger, Retrofit, Butter Knife and Rx; expect fixes for visibility, platform-typed Android signatures, companion-object static quirks (const / @JvmStatic / @JvmField), lambda trailing syntax and array vs IntArray choices. The talk shows code edited live, what changed and why, and which edits actually prevent NPEs or bytecode surprises.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 2:30Visibility modifiers
- 5:45Primary constructor
- 7:08Secondary constructor
- 9:25Scope
- 13:41Questionmarks
- 16:39Null
- 19:41Handling Nulls
- 24:14lambdas
- 32:04Companion object
- 36:19Anonymous inner classes
- 38:21Type inference
- 39:54Arrays
- 43:04Null Safety Operator








