A Guide To Functional Programming
summary
Claims that functional style cuts bugs and makes code easier to test and read, then shows how with concrete JavaScript code: pure versus impure add and random generators, reversing arrays with the spread operator to avoid mutation, transforming lists with Array.map instead of loops, and minimizing side effects instead of console.logging. Demonstrates React by converting class components to React hooks, models state changes as pure Redux reducers, and handles async effects with Redux middleware and API fetch examples like disabling a button during login.
AI-written summary · about
chapters (18)
- 0:00Intro
- 2:47Basics of Functional Programming
- 4:10Functional Languages
- 4:43Javascript: Chimera of Paradigms
- 5:24BENEFITS OF FUNCTIONAL PROGRAMMING
- 8:00Arrow Functions FTW
- 8:18Class Components
- 9:47Basic Structure
- 10:08IMPURE FUNCTIONS
- 12:42NOT A PURE FUNCTION
- 14:16MUTATED VALUES
- 15:08IMMUTABLE VALUES
- 16:00BASIC FUNCTIONS AND LOOPS
- 16:42HIGHER ORDER FUNCTIONS
- 19:10React Functional Component
- 19:38Redux Roducers
- 20:20Necessary Side Effects
- 23:49Using Middleware Functions
related talks
43mPure Functional Programming in JavaScript
01h 03mFunctional Programming in JS: What? Why? How?
48mA Skeptic's Guide to Functional Style Javascript
45mA Skeptics guide to functional style javascript
49mA Skeptics guide to functional style javascript
28mHow to use Functional Programming in your React app
12mAn introduction to functional programming
51mWhat the Functional? What, How and Why
