~/talk

The Rise of the State Machines

Talkat droidcon Berlin 2018 · 2018-06-25..06-27· [android, frontend-architecture]
slides:none on file

A Kotlin DSL models a Shopify login flow of about six states (empty, typing, loading, authenticated, error, no-network) as a unidirectional state machine that moves transitions into state definitions, isolates side effects into processors, and replaces ad-hoc MVI stores. The implementation enforces compile-time safety so invalid actions won’t compile, makes the navigation a readable code-as-diagram, isolates network calls for easy testing, and takes about a week to prototype—works in practice and reduces impossible-to-reproduce crashes.

AI-written summary · about

  1. 0:00Introduction and problem
  2. 2:28Basic login states
  3. 3:32MVI architecture overview
  4. 6:46Handling side effects
  5. 7:50MVI global store issues
  6. 9:38State machines explained
  7. 13:49Pros and cons of MVI
  8. 17:42State machines pros and cons
  9. 19:28Desired global flow diagram
  10. 20:12Kotlin DSL for flow
  11. 23:00Separating state logic
  12. 25:25Implementing transitions
  13. 28:20Adding new transitions
  14. 29:02Linking to UI
  15. 31:51Summary and solutions
~/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.