~/talk

Why Care About Functional Programming

Talkat DevDays Europe 2024 · 2024-05-20..05-24· [frontend-architecture]
slides:none on file

Claims that functional programming reduces what developers must keep in their heads, enforces referential transparency, and makes async, retries, timeouts and resource management declarative rather than imperative. Examples use Scala and Rust; concrete tools shown include the Z library (IO, flatMap, race, timeout, acquireRelease) and Tokio for Rust. A real bug example proves a test passes for months then fails because of hidden current-date side effects, and retry schedules are built and reused instead of handwritten loops.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Why FP matters today
  3. 3:19Pure functions and power
  4. 6:56Declarative vs imperative
  5. 9:27Composing functions
  6. 13:25Problem with imperative side effects
  7. 15:56Referential transparency
  8. 16:16Handling side effects functionally
  9. 20:18Introducing IO monad
  10. 23:48What is a monad
  11. 26:59Common monads
  12. 29:10Monads for async and errors
  13. 35:16Category theory and FP
  14. 36:41FP is not hard
  15. 38:06Practical steps to adopt FP
  16. 41:52Q&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.