~/talk

Demystifying Monads with Java

Talkat J-Fall 2023 · on Thursday, 2023-11-09· [java, functional-programming]
links:none on file
slides:none on file

Argues that monads are practical data structures with a unit/flatMap/get API, demonstrates Java uses like Optional and Stream, and shows how an Either for validation replaces nested ifs and exception-heavy code by returning success or error lists. Uses a Unix pipe analogy, walks through a naive save-customer service turned into an Either pipeline, notes Optional breaks some monad laws, mentions Try/Promise patterns and the Vavr library and recommends SICP.

AI-written summary · about

  1. 0:00Introduction to piping
  2. 2:32Functional programming basics
  3. 3:58First-class functions in Java
  4. 10:38Demystifying monads
  5. 12:36Monad components and laws
  6. 14:45Practical monad usage
  7. 15:41Deep dive into monad laws
  8. 19:40Standard JDK monads
  9. 25:10Service layer patterns
  10. 28:31The Either monad
  11. 34:58Conclusion and resources
~/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.