Going Functional with JS
summary
Claims that JavaScript can be used functionally, demonstrates it with Ramda and ES6 generators, and shows live code that maps [10,20,30,40] to [11,21,31,41], reduces to 100, composes to 25 and transduces purchases to 46. Covers currying, compose/pipe, lenses, Maybe monad and the Fantasy Land spec, notes laziness via a generator to yield 0..billion but only compute 0..5, and says examples run as expected while pointing out library tradeoffs versus purely functional languages.
AI-written summary · about
chapters (8)
- 0:00Functional programming in JS
- 7:33Live coding Arrow functions
- 11:17Side effects and pure functions
- 20:51Ramda library practical use
- 33:50Category theory basics
- 39:11Monads real-world apps
- 44:08Libraries vs pure functional
- 47:21Mathematical correctness in design
related talks
56mFunctional Programming with JavaScript
39mFun with Functional JavaScript
20mFunctional JavaScript
34mFunctional JavaScript for everyone
48mA Skeptic's Guide to Functional Style Javascript
49mA Skeptics guide to functional style javascript
51mWhat the Functional? What, How and Why
30mLearning Functional Programming with JavaScript
