~/talk

Handling exceptions, the functional way

Talkat JCON-ONLINE 2021 · 2021-10-05..10-08· [java, functional-programming]
links:none on file
slides:none on file

Shows a concrete pattern and a tiny library called maybe that wraps Java 8 operations that can throw checked exceptions into two APIs: a resolver that returns a value and a run-effect that returns none. Uses custom throwing supplier / throwing runnable functional interfaces, method references, and a resolveClosing resource helper to close Closable objects. Demonstrates parsing properties and reading files with separate, type-safe handlers per exception, returning explicit fallbacks, avoiding mutable state, and publishing the library to Maven (Java 8+).

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Functional programming basics
  3. 11:18Traditional exception handling
  4. 21:47Functional abstractions for exceptions
  5. 30:08Introducing Maybe library
  6. 41:24Practical Maybe examples
  7. 45:21Summary and closing
~/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.