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:00Benvenuto e introduzione
- 1:29Definizioni OOP e FP
- 7:14Obiettivi della presentazione
- 8:17Primo esempio: Accumulatore
- 15:30Secondo esempio: Studente migliore
- 27:20Raggruppamento studenti per anno
- 29:30Separazione dei concetti
- 35:18Esempio: Righe precedenti agli errori
- 41:46Callback con motori di ricerca
- 52:15Esempio: Gatto e uccelli
- 57:01Esempio: Polimorfismo con Shape
- 59:47Conclusioni e Q&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
