~/talk

Streamtoxication: How a Fluent API turns into a Tangled Mess

Talkat Voxxed Days Amsterdam 2025 · on Thursday, 2025-04-03· [java, frontend-architecture]
slides:none on file

Argues that Java streams improve readability but commonly devolve into brittle code by showing concrete examples: summing completed orders (fails with a non-final local, fixed with an AtomicInteger workaround), building a cross product with flatMap, indexing words while profiling a 100 MB string with IntelliJ profiler (finding the match mid-stream thanks to lazy evaluation), race conditions from parallel streams, a working zip/gather demo to preserve indices, toList immutability surprises, and a concise Map.merge one-liner for grouping that replaces three nested collectors.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Why streams
  3. 2:54Live coding trap
  4. 6:46Cross product demo
  5. 8:54Crowd voting setup
  6. 10:58Lazy evaluation demo
  7. 13:07Adding index challenge
  8. 17:05Parallel stream bug
  9. 21:00Collect to list issue
  10. 25:16File parsing exercise
  11. 27:46Checked exceptions
  12. 30:17Unparsable lines handling
  13. 34:42Total income per user
  14. 38:42Grouping by income
  15. 41:07Imperative vs functional
  16. 45:38Functional principles
  17. 47:44Lambda extraction
  18. 48:29SQL vs streams
  19. 50:59Kotlin pitfalls
  20. 52:49Alternatives to streams
  21. 53:32Conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.