~/talk

The Road to Kotlintown III: Delegate 95 to Coroutine 66

Talkat Chicago Roboto 2018 · on Friday, 2018-04-13· [kotlin]
slides:none on file

Shows how Kotlin delegation actually reduces boilerplate: implement property delegates (used for SharedPreferences, custom view setters) via Delegates.observable or custom getValue/setValue and the by syntax — the shared‑prefs delegate works and simplifies callers but adds runtime cost and must avoid heavy side effects. Explains suspend and coroutines as continuation‑based state machines (suspend points produce a finite-state machine so one generated class can cover many suspension points), lazy defaults to synchronized, coroutines are sync by default and require async for parallelism.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Delegation
  3. 13:23Delegate Code
  4. 14:53ReadWrite Property
  5. 16:36Conventions
  6. 17:38Lazy
  7. 20:16Lazying
  8. 30:14Managing Coroutines
  9. 30:58Coroutine Definition
  10. 31:11Cooperation
  11. 31:23Recap
  12. 31:50Coroutine
  13. 32:26Language Support
  14. 33:07Compilation Error
  15. 33:34Code snippet
  16. 33:53What is a continuation
  17. 34:09What does continuation mean
  18. 34:59Marking suspension explicitly
  19. 35:27The two bits of knowledge
  20. 35:54Why do we care
  21. 36:20Example
  22. 37:39State Machine
  23. 38:51Continuation
  24. 39:22Retrofit
  25. 40:00Coroutine Context
  26. 40:21Context Element
  27. 40:32Why Coroutines
  28. 41:10Coroutine builders
  29. 44:30Experimental keyword
  30. 44:40Experimental TLDR
  31. 45:17RxCoroutines
  32. 45:57Outro
~/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.