What The Functional Programming
summary
Overview of practical FP techniques with runnable Scala and Java code: immutability prevents thread races (demo shows a parallel increment failing), SimpleDateFormat not thread safe breaks when parsed in parallel, pure-function example (an addOne that unpredictably returns 3,4,null or throws), functor usage yields a result 14 for name-length sum via map/fold, flatMap avoids nested Option, monadic sequencing via for-comprehension, and recommendations include ZIO, Arrow and the MCP integration direction.
AI-written summary · about
chapters (11)
- 0:00Introduction to FP
- 5:36Immutability
- 11:26Expression-oriented programming
- 15:49Pure functions and error handling
- 27:45Function composition
- 31:14Higher-order functions
- 33:40Functors and data manipulation
- 40:32Monads and sequencing
- 46:32Illegal states and type safety
- 51:00ADTs and pattern matching
- 57:44Effects and closing remarks
related talks
49mRelax, It's Just FP
01h 44mFunctional Programming: Technical Reasons to Adapt
36mHow functional programming change my Java code
59mIntro to FP in Scala: Exploring a Toolbox for Solving Problems - Part 3 of 6
51mFunctional Programming with Java
01h 03mIntro to FP in Scala: Exploring a Toolbox for Solving Problems - Part 4 of 6
44mBenefits of Functional Programming Beyond map/filter/reduce
01h 06mThe Joy of Functional Programming
