~/talk

Reactive Approach to Delegation in Kotlin

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

Shows how Kotlin's class and property delegation (using the by keyword) is used to build a custom button with three explicit states (showLiked, showUnliked, sendComment) that morphs a heart into a send icon, driven by a single observable property that receives old/new values and triggers animations. Demonstrates lazy to defer heavy init, map delegates to bind JSON keys to properties, and a filterable delegate to reject invalid updates, claiming less boilerplate, immediate UI updates, and clearer state handling via sealed classes.

AI-written summary · about

  1. 0:00Introduction to delegation
  2. 2:06Explicit vs implicit delegation
  3. 6:21Delegated properties in Kotlin
  4. 10:14Lazy delegated property
  5. 15:32Not-null delegated property
  6. 17:39Map as delegated property
  7. 20:30Observable delegated property
  8. 24:07Filterable delegated property
  9. 26:58Custom views with delegation
  10. 34:03Conclusion and resources
~/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.