From JavaScript to Haskell
summary
This talk shows how to refactor imperative JavaScript code into functional style using Haskell ideas, with live-coding examples. It introduces concrete functional concepts—referential transparency, first-class functions, higher-order functions, closures, lambda calculus, currying, partial application, function composition and point-free notation—explained and applied only when useful.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:06Initial JavaScript problem
- 3:38Side effects and dangers
- 6:11Functions as first-class
- 10:56Avoiding side effects
- 13:04Code problem resolution
- 16:59Currying and partial application
- 18:01Refactoring to functional style
- 22:42Comparison with Haskell
- 27:13Key functional concepts
- 28:56Pure vs impure functional
- 30:42Monads and side effects
- 32:09Strong typing in functional
related talks
50mFrom Javascript to Haskell : Functional Programming made simple
06mBrian Lonsdorf (loop/recur) interviewed at Fluent 2014
32mWhat the functions?
41mFunctional Programming for Dummies*
39mFun with Functional JavaScript
20mFunctional JavaScript
43mPure Functional Programming in JavaScript
44mBenefits of Functional Programming Beyond map/filter/reduce
