Why is Functional Programming so hard?
summary
Argues that the hard part is sequencing concepts not jargon, and demonstrates real TypeScript code using fp-ts that requires currying, reader/task/either types, do-notation and lots of pipe operators. Starts learners with immutability then pipe/curried functions, map/flatMap, options/either and tasks, showing how the same map idea applies across arrays, tasks, readers and eithers. Reports that adopting this style on a real SEEK-style codebase pays off in reliability but costs weeks of onboarding for engineers new to the paradigm.
AI-written summary · about
chapters (13)
- 0:00Introduction to functional programming challenges
- 1:33Why functional programming is hard
- 3:46Learning new paradigms is difficult
- 5:55Teaching functional programming poorly
- 7:42Breaking down complex functional code
- 10:14Teaching functional programming step-by-step
- 13:23Core functional programming concepts
- 16:16Avoiding jargon in teaching
- 21:59Understanding map beyond arrays
- 28:19What is a functor?
- 31:07Principles for teaching functional programming
- 33:17Is learning functional programming worth it?
- 36:33Organizational impact of functional programming
