HN Books @HNBooksMonth

The best books of Hacker News.

Hacker News Comments on
Functional JavaScript: Introducing Functional Programming with Underscore.js

Michael Fogus · 4 HN comments
HN Books has aggregated all Hacker News stories and comments that mention "Functional JavaScript: Introducing Functional Programming with Underscore.js" by Michael Fogus.
View on Amazon [↗]
HN Books may receive an affiliate commission when you make purchases on sites after clicking through links on this page.
Amazon Summary
How can you overcome JavaScript language oddities and unsafe features? With this book, you’ll learn how to create code that’s beautiful, safe, and simple to understand and test by using JavaScript’s functional programming support. Author Michael Fogus shows you how to apply functional-style concepts with Underscore.js, a JavaScript library that facilitates functional programming techniques. Sample code is available on GitHub at https://github.com/funjs/book-source. Fogus helps you think in a functional way to help you minimize complexity in the programs you build. If you’re a JavaScript programmer hoping to learn functional programming techniques, or a functional programmer looking to learn JavaScript, this book is the ideal introduction. Use applicative programming techniques with first-class functions Understand how and why you might leverage variable scoping and closures Delve into higher-order functions—and learn how they take other functions as arguments for maximum advantage Explore ways to compose new functions from existing functions Get around JavaScript’s limitations for using recursive functions Reduce, hide, or eliminate the footprint of state change in your programs Practice flow-based programming with chains and functional pipelines Discover how to code without using classes
HN Books Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this book.
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 a better Python programmer.

I would of course add "The good parts" by Crockford to the list.

But maybe that is just par for the 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?...

Javascript Allongé (free to read online) - https://leanpub.com/javascript-allonge

Javascript Spessore (free to read online, but currently work in progress) - https://leanpub.com/javascript-spessore

Here's a good one about Angular, my favorite framework:

Mastering Web Application Development with AngularJS - http://www.amazon.com/gp/product/1782161821/ref=as_li_ss_tl?...

I would of course also recommend the Egghead videos for any Angular aficionados: http://www.youtube.com/playlist?list=PLP6DbQBkn9ymGQh2qpk9Im...

PS. The Amazon links are affiliate links.

drallison
No one should do anything serious without having read Doug Crockford's Javascript: the good parts. There is a nice OO -language hiding in the closet.
Nov 24, 2013 · straws on Why Class?
Everyone using jQuery is benefitting from functional programming. Querying, traversing, and filtering are based on `each` and `map`. It turns what was formerly 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 in (the free!) Eloquent Javascript as well: http://eloquentjavascript.net/chapter6.html

You should also check out how Javascript supports functional programming in languages that compile to Javascript such as LiveScript or Elm.

http://livescript.net/ http://elm-lang.org/

I highly recommend "Functional JavaScript" by Michael Fogus (creator of Lemonad), http://www.amazon.com/Functional-JavaScript-Introducing-Prog...
d0m
It will arrive to my door this Friday, really excited to read it!

Concerning lemonad, since there's no documentation yet, I think the Annotation is really the way to go to get a quick feel at what the library has to offer: http://fogus.github.io/lemonad/lemonad.html

moondowner
And the test specs as well http://fogus.github.io/lemonad/test.html
HN Books is an independent project and is not operated by Y Combinator or Amazon.com.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.