~/talk

If Streams Are So Great, Let’s Use Them Everywhere... Right??

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [java, functional-programming]
slides:none on file

Compares concrete Java patterns: replaces simple loops with Stream operations for readability, shows IntStream.range to keep indexes, and warns flatMap plus boxing makes a cross‑product less readable; uses collectors (groupingBy + counting) vs Map.merge and computeIfAbsent for histograms of ~800 cities; parses millions of lines with mapMulti to avoid double parsing and handle NumberFormatExceptions; demos thread timing where 40 tasks finish in 5s with a stream, 1s for manual threaded start/join, and ~4s with a parallel stream, exposing lazy consumption and unpredictable splitting.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:44Unconference movement
  3. 4:29Streams vs loops basics
  4. 18:03Using collectors
  5. 35:44Exception handling
  6. 44:13Stream evaluation demo
  7. 49:33Conclusion
~/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.