
Functional JavaScript
by Michael Fogus · first published 2013
32mentions
25recommended by
30HN commenters
2013–2023first – last mentioned
83% recommend17% neutral
Why HN recommends it
Teaches functional programming in JavaScript through Underscore.js, replacing loops and temporary state with composed map, reduce and pluck style functions. Suits JS developers wanting FP ideas without a new ecosystem.
Summarised by Claude from recommending comments
Affiliate links. As an Amazon Associate I earn from qualifying purchases.








…to javascript. It is beautiful. After spewing this mantra, one of my colleagues wrote a blog post about it that presents a nice introduction[1]. I would also highly recommend Michael Fogus's book, Functional Javascript[2], that heavily relies on it. 1. http://singlebrook.com/blog/simplify-your-javascript-with-un... 2. http://shop.oreilly.com/product/0636920028857.do
on “A List of JavaScript Tools and Libraries” ↗Nothing on JavaScript? I can recommend Functional JavaScript by Michael Fogus.
on “Functional programming books review” ↗I highly recommend "Functional JavaScript" by Michael Fogus (creator of Lemonad), http://www.amazon.com/Functional-JavaScript-Introducing-Prog...
on “Lemonad: Functional JavaScript Library” ↗…language course, before one even starts to wants to master Engineering :) JavaScript: The Good Parts - http://www.amazon.com/gp/product/0596517742/ref=as_li_ss_tl?... Here's a few other good ones: Functional JavaScript: Introducing Functional Programming with Underscore.js - http://www.amazon.com/gp/product/1449360726/ref=as_li_ss_tl?... Secrets of the JavaScript Ninja - http://www.amazon.com/gp/product/193398869X/ref=as_li_ss_tl?...…
on “Four Books to Master JavaScript Engineering” ↗React is full of declarative code. Something I'd recommend whole-heartedly is Michael Fogus' Functional Javascript book. It shares a lot in common with POODR in that it's conscious of why functional techniques are useful and how to think in a data-oriented way. The book is self-aware of the beginner's mindset in absorbing…
on “Ask HN: Resources for learning advanced JavaScript and React” ↗…looping and saving values as temporary/instance variables into declarative, collection-based compositions of functions. Beyond that, Michael Fogus — big in the Clojure + Clojurescript community — has Functional Javascript which explores functional concepts using Underscore: http://www.amazon.com/Functional-JavaScript-Introducing-Prog... Marijn Haverbeke — a big Lisp hacker and the creator of Codemirror — has a nice chapter…
on “Why Class?” ↗Eloquent JavaScript - Marijn Haverbeke Effective JavaScript - Dave Herman Functional JavaScript - Michael Fogus Once you know JavaScript, dig into the codebase of larger mature projects by the most prolific/well-known developers in the JavaScript community, like TJ Holowaychuk, Isaac Schleuter,…
on “Ask HN: Curriculum for learning JavaScript, JQuery, and Node?” ↗…programming more of a (fascinating and important!) meta-topic; worthy even of dedicated books [2] and beyond the scope of Speaking JS. [1] http://speakingjs.com/es5/ch18.html#_array_indices_in_detail [2] “Functional JavaScript” by Michael Fogus. http://shop.oreilly.com/product/0636920028857.do
Learning a more functional language is a good idea, but you can also do more within JavaScript itself. Well after I'd been using higher order functions and Underscore, I found Michael Fogus's Functional JavaScript to be quite good. There is also JavaScript Allongé by Reginald Braithwaite, which I want to read soon. For libraries, there's Lemonad, Bilby and Fantasy Land, all of which push the boundaries of functional…
on “Ask HN: Best way to start with functional programming?” ↗Might also recommend Functional Javascript by Michael Fogus. He uses underscore.js, and avoids re-implementing classic functional patterns (map, reduce, filter, etc). I understood a lot of functional concepts from Lisp before reading the book.…
on “Why I changed my mind about Node.js” ↗Also see Functional JavaScript [1] by Michael Fogus. [1]http://shop.oreilly.com/product/0636920028857.do
on “Mostly Adequate Guide to Functional Programming in JavaScript” ↗If you want to learn foundational FP topics but don't have the time to commit to learning a whole new ecosystem, I really recommend Fogus's Functional Javascript: http://www.amazon.com/Functional-JavaScript-Introducing-Prog... I know that JS isn't the same thing as Clojure but the ideas in this book work with really any language. After reading this book I'm…
on “Riemann – A network monitoring system” ↗For me, I had a true programmer enlightenment moment after reading "Functional JavaScript" by Michael Fogus. Seriously, my whole career changed after that and I was in much greater control over my code and everything got simpler. People always talk about books changing their lives and this…
on “Ask HN: How did you become a “good enough” programmer?” ↗Eloquent JavaScript for new developers Crockford's JavaScript The Good Parts for developers coming from another language. Functional JavaScript by Fogus is excellent and can be read after either.
on “Ask HN: Resources to learn JavaScript in 2014?” ↗1. Async JavaScript: Build More Responsive Apps with Less Code http://www.amazon.com/gp/product/B00AKM4RVG/ref=kinw_myk_ro_... Any serious JS dev needs to master async. 2. Functional JavaScript: Introducing Functional Programming with Underscore.js http://www.amazon.com/gp/product/B00D624AQO/ref=kinw_myk_ro_... While the book uses Underscore, that's not its focus. A good understanding of functional…
on “Four Books to Master JavaScript Engineering” ↗