Pragmatic Functional Refactoring with Java 8
summary
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
chapters (19)
- 0:00Start
- 3:33Code Reuse
- 5:51Use Method References
- 6:42Lambda Expressions
- 8:33Compose Functions in Java 8
- 9:23Predicate Interface
- 11:43Kurung
- 16:02The Builder Pattern
- 16:51Sender Builder
- 18:25Immutability
- 22:11Two-Stage Process
- 24:11Type Annotations
- 25:22Breaking News Java 10
- 25:35Value Types
- 25:45Benefits
- 26:08Better Sequential Locality
- 27:24Optional Data Types
- 30:08Map Pattern
- 32:31Upsides and Downsides
related talks
55mFunctional Programming Patterns with Java8
43mRefactoring to Functional Style
36mHow functional programming change my Java code
52mFunctional Programming with Java 8
55mFunctional Programming in Java
55mTransforming Your Code to Java 8
01h 01mOOP and FP
01h 25mJava 8 Language Capabilities, What's in it for you?
