~/talk

Avoiding the dogma - a plea for mutable objects

Talkat Fluttercon USA 2025 · 2025-06-25..06-26· [flutter, software-architecture]
links:none on file
slides:none on file

Argues immutable-by-default is dogma and shows a concrete alternative: wrap backend DTOs in proxy objects that expose getters, override fields for optimistic updates, and call notifyListeners; store proxies in a central repository keyed by ID with a reference count to keep multiple feeds in sync. Uses a command object (flutter commands package) that provides value-listenables for canExecute/isExecuting/errors, prevents double calls, and supports an undo stack for failed API calls. Proven in a real project for two years and demoed with frequent failures where optimistic updates reliably roll back.

AI-written summary · about

  1. 0:00Mutable objects plea
  2. 2:10Dogma of immutable data
  3. 7:30Functional programming limits
  4. 8:11Elegance of mutable objects
  5. 11:50Controlling data access
  6. 13:17Proxy pattern for data
  7. 18:29Synchronizing shared objects
  8. 23:11Commands for state changes
  9. 29:53Conclusion
  10. 30:14Q&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.