~/talk

Java 8: The Good, the Bad and the Ugly

Talkat JavaDay Kharkiv 2016 · on Saturday, 2016-09-17· [java]
slides:none on file

Shows concrete anti-patterns found in real code reviews and supplies runnable samples in an open repo (one external PR so far). Demonstrates wrong versus better code for Optional.of/empty usage, replacing nested presence checks with Optional.orElseThrow and using flatMap to avoid nested Optionals. Covers stream mistakes: long lambdas, misused forEach, returning one-time Streams, and boxing costs solved by IntStream. Gives working replacements and explains when each approach beats the naive version.

AI-written summary · about

  1. 0:00Introduction
  2. 5:45Java 8 GC
  3. 18:26Lambdas best practices
  4. 25:28Functional interfaces
  5. 38:15Stream anti-patterns
  6. 54:41Specialized streams
  7. 1:03:29Summary
~/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.