~/talk

How to Kotlin - from the lead Kotlin language designer

Talkat Google I/O 2018 · 2018-05-08..05-10· [kotlin]
name:James Lau
links:none on file
slides:none on file

Shows concrete Kotlin practices: use data classes and the IDE Java->Kotlin converter to make classes cheap, prefer top‑level and local functions and extension functions over utility containers, replace verbose getters with delegated properties and lazy, rely on smart casts and sealed classes to remove casts. Demo creates 100,000 OS threads and gets OOM, then replaces them with coroutines that run fine and shows turning callback APIs into suspend functions via suspend/resume and buildSequence yielding lazy streams.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Welcome
  3. 1:42Declaring classes
  4. 3:15Cheap classes
  5. 5:33Properties
  6. 6:19Delegation
  7. 8:07Property classes
  8. 10:02Functions
  9. 15:53Local Functions
  10. 19:15Expressions
  11. 22:55When
  12. 23:47Null
  13. 25:16Functional style
  14. 27:04Functional abstractions
~/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.