~/talk

The Dark Side of Java 8 - Lessons Learned

Talkat Voxxed Days Zurich 2019 · on Tuesday, 2019-03-19· [java, software-architecture]
slides:none on file

Java 8 has concrete pitfalls and concrete fixes: flatMap eagerly evaluates nested streams, which can fully materialize infinite or large inner collections and is fixed in JDK10; filters don’t short‑circuit ordered data until you use takeWhile in JDK9; parallel streams run on a shared ForkJoinPool so tasks and parallelism are surprising unless you know the defaults; lambdas can be coerced to throw checked exceptions via type inference hacks; Stream.generate is unordered and Optional treats null as empty — watch for semantic gotchas.

AI-written summary · about

  1. 0:00Introduction
  2. 6:00Conditional Stream Termination
  3. 10:08Lazy Semantics
  4. 19:18lambda expressions vs checked exceptions
  5. 24:48parallel processing
  6. 25:54multiple questions
  7. 31:46follow up
  8. 33:17streemgenerate
  9. 38:00Optional vs Option
~/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.