~/talk

The joy of Functional Programming in Dart

Talkat Fluttercon Europe 2023 · 2023-07-05..07-07· [flutter, functional-programming]
slides:none on file

Shows how Dart enforces purity and immutability with final/const and immutable records by refactoring an area-of-circle example that breaks when pi is mutable and when radius is negative. Demonstrates error handling by replacing thrown exceptions with sealed result types and pattern matching, then composes async calls using the fpdart Either/Task (TaskEither) types to avoid nested futures. Mentions immutability helpers (freezed, equatable) and gives a small GitHub playground for the examples.

AI-written summary · about

  1. 0:00Introduction and thanks
  2. 1:07What is functional programming
  3. 3:12Purity and immutability in Dart
  4. 7:28Declarative vs imperative style
  5. 9:16Higher order functions in Dart
  6. 10:40Dart features for functional style
  7. 13:54Records and patterns in Dart
  8. 16:50Pattern matching benefits
  9. 17:53Handling errors with Result
  10. 21:05Chaining async operations
  11. 22:09Useful functional packages
  12. 23:33FP Dart package overview
  13. 25:18Task type for async chains
  14. 27:45Refactoring with TaskEither
  15. 28:05Conclusion and key 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.