A Guide To Functional Programming
summary
Covers how writing pure functions and using immutable values in JavaScript makes code predictable, easier to test and reuse; shows concrete fixes: replace mutating for‑loops with map/reduce, use the spread operator to avoid array mutation, and drop class components for React hooks to eliminate this binding. Demonstrates handling async work with Promise.all and observables/epics (and mentions redux‑saga) using a Google Timezone API example and a working Black Friday countdown, and explains middleware for side effects.
AI-written summary · about
chapters (15)
- 0:00Start
- 1:14Basics of Functional Programming
- 5:13Arrow Functions FTW
- 5:43Class Components
- 6:56Basic Structure
- 7:31IMPURE FUNCTIONS
- 10:21PURE FUNCTION?
- 12:32IMMUTABLE VALUES
- 14:03BASIC FUNCTIONS AND LOOPS
- 14:48HIGHER ORDER FUNCTIONS
- 16:47React Functional Component
- 17:25Redux Reducers
- 19:27Necessary Side Effects
- 21:00Extracting Non-Functional Code
- 21:56Using Middleware Functions
related talks
45mA Skeptics guide to functional style javascript
43mPure Functional Programming in JavaScript
41mFunctional programming: Give it a chance!
34mFunctional JavaScript for everyone
20mFunctional JavaScript
43mFunctional programming is not just lambdas!
31mA Primer on Functional Programming
32mWhat the functions?
