Douglas Crockford has said that "JavaScript has more in common with functional languages like Lisp or Scheme than with C or Java". Yet most of us try to use JavaScript as a typical Object-Oriented Programming language (with a few callbacks sprinkled in here and there). What if we were to return to JavaScript's roots and actually use it as a functional programming language? (gasp!)

Elm has shown how blazingly fast functional programming can be when used on the web. Elm is an amazing language and I encourage everyone to learn it, but what if we applied those same principles to JavaScript and used it as our functional programming language of choice.

In this talk, I'll show how JavaScript can be used as a purely functional language by simply ignoring the OOP stuff. I'll show how we can use immutable data structures via Immutable.js to avoid the pitfalls of mutable state. I'll cover the foundational concepts you need to know in order to get started with functional programming in JavaScript.

Comments

Comments are closed.

I really enjoyed this talk- it was very clear and interesting. I left with a better understanding of functional programming and some new things to try for JavScript. Great talk!

Chitvan Singh at 10:20 on 21 Sep 2017

I really liked your talk. Could you please upload your slides?

Matt Banz (Speaker) at 10:48 on 21 Sep 2017

Thank you for the feedback. You can find the slides on my github repo: https://github.com/battmanz/functional-javascript-examples/blob/master/js-gooder-parts.pdf. When I have a chance, maybe I'll upload them to SlideShare. That's probably a better way to share them.