~/talk

Monads for Testers

TalkinRussianat DelEx Conf 2019 · on Friday, 2019-02-08· [testing]

Shows concrete Scala-on-JVM examples of replacing exceptions with Option and Either to return values-or-errors, using map/flatMap for monadic composition, and using immutable case classes and copy to avoid unexpected state changes. Demonstrates lists as monads for collection flatMap and how compiler-enforced exhaustivity forces handling new cases (e.g., a new country), which simplifies tests and makes property-based testing practical; notes these ideas apply to Java or C# environments as well.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Testing to QA
  3. 2:51Functional programming quality
  4. 6:44Option for empty values
  5. 10:20Either for error handling
  6. 19:48Immutability issues
  7. 25:11Pure functions benefits
  8. 33:54Parallel execution clean code
  9. 37:04Monads why use them
  10. 42:22Summary resources
  11. 44:07Q&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.