~/talk

Clean up state handling with a state machine

Talkat droidcon Berlin 2021 · 2021-10-20..10-22· [frontend-architecture]
links:none on file
slides:none on file

Retrofits a state machine into a growing ride app, replacing a monolithic ride model with a sealed class hierarchy for states and actions as a generic abstract class, using RxJava BehaviorSubject as the single source of truth. Migration happens incrementally with coexistence callbacks to avoid big bangs, every ride API operation becomes an action, the old ride repository is removed, migration ships in small PRs with no crash or failure-rate increase, and follow-up features like caching require only a few lines.

AI-written summary · about

  1. 0:00Introduction to state machine
  2. 4:21Problems with current state handling
  3. 7:28Designing the state machine solution
  4. 13:30Incremental migration challenges
  5. 18:01Outcomes and takeaways
~/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.