~/talk

Pragmatic Functional Refactoring with Java 8

Talkat Lambda World 2016 · 2016-09-30..10-01· [java, functional-programming]
links:none on file
slides:none on file

Shows concrete refactorings from legacy Java to Java 8: replace ad‑hoc find loops with method references and Predicate objects, swap manual null checks for Optional with map/flatMap (notes Optional.get is a trap), use Streams for filter/map/reduce, compose functions with Function.andThen/compose and build pipelines for email processing, apply currying to implement type‑safe builders via DoubleUnaryOperator, favour immutable copies to avoid mutation bugs in linked structures and notes value types planned for Java 10.

AI-written summary · about

  1. 0:00Start
  2. 3:33Code Reuse
  3. 5:51Use Method References
  4. 6:42Lambda Expressions
  5. 8:33Compose Functions in Java 8
  6. 9:23Predicate Interface
  7. 11:43Kurung
  8. 16:02The Builder Pattern
  9. 16:51Sender Builder
  10. 18:25Immutability
  11. 22:11Two-Stage Process
  12. 24:11Type Annotations
  13. 25:22Breaking News Java 10
  14. 25:35Value Types
  15. 25:45Benefits
  16. 26:08Better Sequential Locality
  17. 27:24Optional Data Types
  18. 30:08Map Pattern
  19. 32:31Upsides and Downsides
~/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.