~/talk

10 Kotlin Tricks in 10 ish minutes

Talkat Devoxx US 2017 · 2017-03-21..03-23· [kotlin, android]
slides:none on file

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

  1. 0:00Intro
  2. 0:28Why Kotlin?
  3. 3:36Explosive Placeholders
  4. 4:33Semantic Validation
  5. 5:59Anything and Nothing
  6. 8:55Let
  7. 10:50Multiline String Literals
  8. 11:50Lazy but Speedy
  9. 13:12Code Block Measurement
  10. 13:49Deprecation Levels
  11. 15:04Deprecation Replacements
  12. 15:59Erasing Erasure
~/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.