~/talk

Java Functional Programming Idioms

Talkat Developer Summit 2020 · 2020-11-21..11-22· [java]
slides:none on file

Shows concrete Java 8 idioms: express a prime check with IntStream.range + noneMatch instead of loops, build readable pipelines by aligning stream operations vertically (filter → map → forEach) and rely on the runtime to fuse operations rather than merging calls for micro‑optimisation, prefer method reference for pass‑through lambdas, treat lambdas as glue (no multi‑line lambdas), and keep lambdas pure — avoid shared mutable state (the array trick defeats laziness and breaks correctness).

AI-written summary · about

  1. 0:00Introduction to idioms
  2. 2:51Functional programming basics
  3. 7:25Thinking functionally
  4. 12:26Functional pipeline pattern
  5. 16:47Vertical alignment of operations
  6. 23:43Performance and lazy evaluation
  7. 27:59Finding best functions
  8. 30:24Lambda as glue code
  9. 38:57Method references
  10. 43:15Readable lambda parameters
  11. 47:05Pure functions in Java
  12. 55:15Summary and closing
~/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.