~/talk

A Hitchhiker's Guide to the Functional Exception Handling

Talkat JavaDay Ukraine 2017 · 2017-11-04..11-05· [functional-programming]
slides:none on file

Argues that Java exceptions leak control flow and are costly to instantiate because of stacktrace capture, cites a benchmark showing a static stackless exception approach orders-of-magnitude faster, and finds ~600k GitHub occurrences of NoSuchElement-style misuse. Proposes replacing thrown errors with value containers—Optional, Try, Either—and using the functional library waiver to compose recover, map and flatMap chains; shows Java 8-compatible implementations and notes upcoming pattern matching in Java 18 to simplify handling.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 7:59Problems with exceptions in Java
  3. 15:48Functional approaches to error handling
  4. 26:29Working with Try in Java
  5. 31:08Introducing Either for error handling
  6. 36:10Abuse of exceptions in Java code
  7. 39:03Key takeaways and summary
  8. 41:04Q&A session
~/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.