Learning To Code In Functional Style with Java
summary
Argues functional style cuts accidental complexity by using filter map reduce and Java streams; shows concrete code (list 1–10, filter evens, map x2, reduce gives 60) and a “first even >3 doubled” example that imperative does 8 steps while naïve counting makes the pipeline seem to do ~32, but lazy evaluation fuses steps so the stream performs only the needed work and returns the same results and can be switched to parallelStream for easy parallelism.
AI-written summary · about
chapters (7)
- 0:00Why functional style
- 7:58Declarative vs imperative
- 15:30Lambda expressions
- 20:45Filter map reduce
- 33:55Reduce operation explained
- 42:05Lazy evaluation benefits
- 50:25Streams and performance
related talks
43mRefactoring to Functional Style
52mFunctional Programming with Java 8
01h 01mTransforming Data using the Functional API
51mHitchhiker's Guide to Functional Programming
36mHow functional programming change my Java code
51mFunctional Programming with Java
49mJava Functional Programming Idioms
56mJava Functional Programming Idioms
