~/talk

Java Functional Programming Idioms

Talkat J-Fall 2018 · on Thursday, 2018-11-08· [java, functional-programming]
slides:none on file

Focuses on concrete habits: prefer a collection pipeline (Stream → filter people older than 25 → map to name → map to uppercase → collect(joining(","))) instead of manual for‑loops; use IntStream.range/rangeClosed and Java 9 Stream.iterate for numeric iteration; align dots vertically to reduce cognitive load; treat lambdas as glue code (keep them short), favor method references and meaningful lambda parameter names, and keep lambdas pure (no mutable closed‑over state) to enable lazy evaluation, parallelism, testability and maintainable code.

AI-written summary · about

  1. 0:00Intro
  2. 4:00Think Declaratively
  3. 6:52Decorative Style
  4. 9:07Functional Style
  5. 10:38Example
  6. 16:02Collection Pipeline Pattern
  7. 17:52Consultant
  8. 18:24Pipeline
  9. 19:07Humanity
  10. 21:25Cognitive load
  11. 22:11Code in the bottom
  12. 24:23Reduce cognitive load
  13. 24:41Imperative vs Functional
  14. 26:45Java 9 Functions
  15. 28:16Treat lambdas as glue code
  16. 29:06Number
  17. 29:40More Complex
  18. 30:16The Power of the Functional Pipeline
  19. 30:50lambdas or glue code
  20. 32:01hard to test
  21. 32:17hard to read
  22. 33:37lambda glue
  23. 34:06lambda coverage
  24. 35:19lambda glues
  25. 35:40method reference
  26. 35:51method references
  27. 37:03type inference
  28. 39:07good names
  29. 39:29cascading lambdas
  30. 39:43example of cascading
  31. 40:23lambda
  32. 41:22double values
  33. 41:35stream
  34. 42:56closure
  35. 44:06effectively final
~/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.