Introduction to functional programming
summary
Fast, concrete demo of replacing imperative loops with JavaScript higher‑order functions: live code shows a pantry→breakfast taco example refactored from for‑loops that mutate arrays into map filter reduce calls that return new collections, an explicit pipe implementation that composes functions, and explanation of eliminating side effects to make pure functions. Mentions the TC39 pipeline operator proposal and links code on GitHub: badali/end-of-loops.
AI-written summary · about
chapters (5)
- 0:00Introduction to FP
- 1:28Avoiding side effects
- 3:36Refactoring loops
- 5:31Higher-order functions
- 7:46Function composition
related talks
12mAn introduction to functional programming
30mLearning Functional Programming with JavaScript
20mFunctional JavaScript
01h 03mFunctional Programming in JS: What? Why? How?
51mWhat the Functional? What, How and Why
50mFrom Javascript to Haskell : Functional Programming made simple
53mMaintainable JavaScript with Functional Patterns
39mFun with Functional JavaScript
