~/talk

The Road to Kotlintown

Talkat droidcon NYC 2017 · 2017-09-25..09-26· [kotlin]
slides:none on file

Starts by mapping Kotlin’s type system (nullable types, Nothing, Any vs Object, Unit) and then shows concrete choices when converting Java: add explicit upper bounds for generics, use where clauses, avoid unsafe star casts because type erasure makes list as List<Int> always succeed at runtime, prefer declaration-site variance (in/out) for public APIs, and use lambdas with receivers and extension functions to build a small DSL for ConstraintSet and an obtainStyledAttributes wrapper that automatically recycles the TypedArray — code compiles and becomes safer and far more readable.

AI-written summary · about

  1. 0:00Introduction and speakers
  2. 1:03Kotlin type system basics
  3. 2:27Subtypes and type nuances
  4. 4:12Null safety and Nothing type
  5. 6:21Any vs Object and Unit explained
  6. 8:06Generics and platform types
  7. 11:15Type erasure and star projections
  8. 14:43In and out variance keywords
  9. 16:29Variance types deep dive
  10. 22:08Declaration vs use-site variance
  11. 23:50Lambdas with receivers
  12. 28:43Extension functions benefits
  13. 32:55Execute-on pattern and DSLs
  14. 38:06Summary 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.