~/talk

Rethinking UI: Imperative to Declarative

Talkat droidcon Americas 2020 · 2020-11-16..11-17· [frontend-architecture, android]
name:Joe Birch
links:none on file
links:none on file
slides:none on file

Argues that Jetpack Compose (alpha) with SwiftUI and React cuts boilerplate and bugs by letting code declare UI from state instead of imperatively mutating views, showing examples where a simple "Hello world" takes ~20 lines in XML/RecyclerView but far less with composition. Explains unidirectional data flow, compiler diffing (virtual-DOM–style partial updates), recommends moving UI state into ViewModel/single source of truth, using Kotlin Flows, MaterialTheme and preview annotations to ease migration and testing.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:15Current UI development challenges
  3. 5:28What is declarative programming
  4. 6:10Declarative UI frameworks overview
  5. 8:55Benefits of declarative UIs
  6. 11:01Issues with imperative UI
  7. 12:25State management in declarative UIs
  8. 15:54Unidirectional data flow explained
  9. 17:20State representation in UIs
  10. 21:10Tree updates in declarative UIs
  11. 22:55Performance trade-offs in declarative UIs
  12. 24:38Preparing apps for Jetpack Compose
  13. 27:27Q&A on Jetpack Compose stability
  14. 28:57Jetpack Compose vs Data Binding
  15. 30:44Testing in Jetpack Compose
  16. 33:36Adopting Jetpack Compose in production
  17. 35:00State management with Kotlin Flows
  18. 36:46Accessibility in declarative UIs
  19. 37:50Theming and styling in Jetpack Compose
  20. 38:33Design layout preview in Compose
  21. 39:37Adoption considerations for Compose
  22. 41:23Compose internals and coroutines
  23. 42:05Architecture migration for Compose
  24. 43:13Closing remarks and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.