~/talk

Functional Programming with Java 8

Talkat Devoxx US 2017 · 2017-03-21..03-23· [java]
slides:none on file

Java 8 demonstrates concrete functional tools: lambda expressions (parameters + body, inferred return), single‑abstract‑method functional interfaces, method references, and streams (filter → map → sum) that replace verbose loops and compute “sum of double of even numbers” without mutable accumulators. Examples run and show lazy evaluation, safe captures via the effectively‑final rule, and easy conversion to parallel execution with parallel streams; a shown mutable closure hack breaks purity and is flagged as a bad idea.

AI-written summary · about

  1. 0:00Introduction to FP in Java
  2. 1:57Problems with Imperative Code
  3. 5:23Assignment-less programming
  4. 8:36Immutability and side effects
  5. 10:40Higher-order functions
  6. 14:12Lambda expressions
  7. 17:26Iterators and collections
  8. 20:42Functional interfaces
  9. 24:13Method references
  10. 27:39Declarative vs imperative
  11. 32:49Closures and scope
  12. 36:57Lazy evaluation
  13. 44:10Benefits and conclusion
~/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.