~/talk

The Rise of the State Machines: An Introduction to Predictable State Container–Based Architectures for Your Android Apps

TalkinFrenchat Android Makers 2019 · on Tuesday, 2019-04-23· [android]
slides:none on file

An introduction to using state-per-step state machines for Android apps, demonstrated with a Kotlin DSL library named flou that models login flows using coroutines and ViewModel stores. Shows a compiled, type-safe implementation where reducers produce pure transitions that can be recorded to reproduce crashes, side-effects are emitted and tested, and unit tests run much faster than full Espresso suites. Discusses tradeoffs: easier local reasoning and testing and restored navigation visibility versus some repetitive actions and the lack of a single global navigation map unless machines are composed.

AI-written summary · about

  1. 0:00State machines in Android
  2. 1:04Auth problems
  3. 3:16Key requirements
  4. 5:31MVI and unidirectional flow
  5. 8:01Pure functions for state
  6. 9:28Side effects in state
  7. 11:54MVI limits for navigation
  8. 12:39State machines for UI flows
  9. 16:36MVI vs state machines
  10. 22:58Global navigation
  11. 23:45Kotlin DSL for navigation
  12. 27:24Login flow with DSL
  13. 35:50Testing business logic
  14. 36:35DSL in ViewModel
  15. 40:18Limitations and future
  16. 41:20Q&A
~/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.