OOP and FP
summary
Compares idiomatic Java 7 OOP style with Java 8’s functional style using concrete examples: string joining with map/reduce to avoid mutable StringBuilder, grouping with Collectors, finding min/max via a single reduce, and using lazy streams to read large logs with limit that prevents loading the whole file. Shows parallelism via parallel streams (noting danger because they use the ForkJoinPool by default), points out Java 8 has no built‑in sliding window, and demonstrates asynchronous composition using CompletableFuture instead of nested callbacks.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:29OOP vs FP definitions
- 7:14Presentation goals
- 8:17Accumulator example
- 15:30Top student example
- 27:20Group students by year
- 29:30Concept separation
- 35:18Rows before errors example
- 41:46Search engine callbacks
- 52:15Cat and birds example
- 57:01Shape polymorphism example
- 59:47Q&A
related talks
52mFunctional Programming with Java 8
37mPragmatic Functional Refactoring with Java 8
55mFunctional Programming Patterns with Java8
51mOOP v̶s̶ and FP
57mLearning To Code In Functional Style with Java
36mHow functional programming change my Java code
49mTen Common Mistakes Made in Functional Java 1
43mRefactoring to Functional Style
