~/talk

Reconciling Functional Programming And Exceptions

Talkat Scala Italy 2016 · on Saturday, 2016-05-14· [scala]
links:none on file
slides:none on file

Argues for returning Try/Either (or Scalaz disjunction) instead of throwing exceptions, shows examples with map/flatMap, recover and for-comprehensions, and warns about nested Try and Option needing monad transformers; recommends stricter parameter types to move errors to compile time; stresses log every failure and decouple reporting from recovery, and shows a reusable handler that trims stack frames and auto-logs; notes JVM interop pain with Java checked/unchecked exceptions and anonymous-function stack traces and points to tools like rapture and stacktrace cleaners.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:22Why exceptions matter
  3. 3:30Functional vs imperative error handling
  4. 5:36Using Try type in Scala
  5. 7:45Chaining Try operations
  6. 9:09Monads and Try limitations
  7. 10:14Logging exceptions properly
  8. 11:40Alternatives to Try
  9. 13:07Replacing exceptions with types
  10. 14:30Functional core with imperative shell
  11. 15:54Java exceptions in Scala
  12. 17:19Handling Java exceptions
  13. 18:23Better exception logging tools
  14. 19:30Clarifying exception terminology
  15. 20:56Exception handling patterns
  16. 23:08Final recommendations and summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.