Functional JavaScript
Michael Fogus
O’Reilly Media
<p>While some web developers dismiss JavaScript as a flawed language, this succinct book shows you how to make the best of it by practicing a functional style of JavaScript programming. Written by a core contributor to Clojure and ClojureScript, and author of <i>The Joy of Clojure</i>, this book is packed with not only the <i>how</i> of functional programming, but also the <i>why</i>.<br><br>----------<br>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.<br><br>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.<br><br>• Use applicative programming techniques with first-class functions<br>• Understand how and why you might leverage variable scoping and closures<br>• Delve into higher-order functions—and learn how they take other functions as arguments for maximum advantage<br>• Explore ways to compose new functions from existing functions<br>• Get around JavaScript’s limitations for using recursive functions<br>• Reduce, hide, or eliminate the footprint of state change in your programs<br>• Practice flow-based programming with chains and functional pipelines<br>• Discover how to code without using classes<br></p>