~/talk

Unlocking the Magic of Monads with Java 8

Talkat JavaDay Kyiv 2015 · 2015-11-06..11-07· [functional-programming, java]
slides:none on file

Claim: monads give a practical way to tame callback hell by representing computations as types and chaining them with pure and bind. The talk builds a small Promise type implementing pure and bind using Java 8 lambdas, shows tests for the monad laws (left identity, right identity, associativity), and demonstrates sequencing generic operations across monadic instances. Implementation works locally but is replaced by the JDK solution — uses Java 8 CompletableFuture and Optional as real, tested monadic types that avoid nested callbacks.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 3:50Demystifying monads
  3. 7:23The callback hell problem
  4. 11:32Conceptualizing monads
  5. 15:37Monad interface design
  6. 19:04Implementing the promise
  7. 24:27Evaluating the implementation
  8. 28:41Generic monadic utility
  9. 32:36The laws of monads
  10. 37:24Testing monad behavior
  11. 40:24Monads in the JDK and conclusion
~/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.