~/talk

The Journey From Legacy Code to Idiomatic Kotlin

Talkat droidcon SF 2019 · 2019-11-18..11-19· [android, kotlin]
links:none on file
slides:none on file

Outlines a practical path: choose a component, either rewrite file from scratch or use convert Java file to Kotlin then fix compiler errors, address IDE warnings, and make a third commit to refactor into idiomatic Kotlin. Targets are concrete: eliminate remove double bangs by using safe calls, Elvis, local val captures, prefer immutability with by lazy over lateinit, replace nested null checks with let/apply/with, use map/filter for collections, and add @NonNull/@Nullable and @file:JvmName/@JvmMultifileClass for Java interop. Over 70% of time is spent reading such cleaner code.

AI-written summary · about

  1. 0:00Introduction to legacy Kotlin
  2. 1:16Defining idiomatic Kotlin
  3. 3:42Null safety in Kotlin
  4. 6:51Immutability in Kotlin
  5. 8:58Concise and expressive code
  6. 11:49Java interoperability tips
  7. 13:53Refactoring strategies
  8. 14:56Ensuring idiomatic code
  9. 15:39Final thoughts and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.