~/talk

Coding the happy path with Commands and Exceptions

links:none on file
slides:none on file

A Flutter app called Watch Crunch uses Thomas Burkhart’s packages (get_it, fl_command, watch_it) to move error, busy and result handling out of widgets: a Command wraps async work, exposes errors ValueListenable, isExecuting and a canExecute restrictions input, catches exceptions to a global handler with pluggable filters, and prevents double execution. Implementations include a paged FeedDataSource, a global post repository with change‑notifier proxies, optimistic updates with an undoable command and executeWithFuture for pull‑to‑refresh — all running in production.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:10Happy path vs error handling
  3. 4:17What are Flutter Commands
  4. 8:54Command features and use cases
  5. 11:10Error handling with Commands
  6. 13:36Real-world error filter example
  7. 16:50UI integration with WatchIt
  8. 19:47Paginated feed data sources
  9. 26:10Mutable data and change notifiers
  10. 28:17Post proxy and repository pattern
  11. 31:30User proxy and data abstraction
  12. 34:44Optimistic UI updates
  13. 36:33Undoable Commands
  14. 38:41Conclusion 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.