~/talk

Pain-free Functional Programming with Java 21

Talkat GeeCON 2024 · 2024-05-15..05-17· [java, functional-programming]
slides:none on file

Demonstrates concrete code: use Java 22 records for immutable data, build an Attempt/Or wrapper (success/failure or left/right) to make errors first-class values, and use sealed interfaces with permits so the compiler enforces exhaustive pattern matching in switch expressions. Shows pattern matching with underscore anonymous variables, switch as expression, and how Vavr’s either (flatMap) fails fast while Vavr’s Validation (combine + ap) accumulates errors. Supplies working examples that compile and give exhaustive match checks and multi-error validation.

AI-written summary · about

  1. 0:00Introduction to session
  2. 1:11What is functional programming
  3. 8:37Immutable data in Java
  4. 13:53Pure functions benefits
  5. 17:25Error handling with Attempt
  6. 27:41Algebraic data types
  7. 36:57Validation with Either
  8. 43:00Monads and applicatives
  9. 48:19Key takeaways
  10. 50:27Resources and Q&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.