Functional JavaScript


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

Table of Contents
Chapter 1. Introducing Functional JavaScript
Chapter 2. First-Class Functions and Applicative Programming
Chapter 3. Variable Scope and Closures
Chapter 4. Higher-Order Functions
Chapter 5. Function-Building Functions
Chapter 6. Recursion
Chapter 7. Purity, Immutability, and Policies for Change
Chapter 8. Flow-Based Programming
Chapter 9. Programming Without Class

Appendix A. Functional JavaScript in the Wild
Appendix B. Annotated Bibliography

Book Details

  • Paperback: 260 pages
  • Publisher: O’Reilly Media (June 2013)
  • Language: English
  • ISBN-10: 1449360726
  • ISBN-13: 978-1449360726
Download [11.5 MiB]

You may also like...

No Responses

  1. billadoid says:

    This one is quite popular and for good reasons. I just downloaded for a second time by mistake.

    The main idea is:
    Fast + secure = state of the art

    A great book if you are crazy about optimizing your code. Reading it will make you a benchmark junkie (jsPerf FTW).

    If you haven’t learned the under-the-hood stuff by Crockford by now, Functional JavaScript will teach you how to pimp your app (the manly, NASCAR way).

    Some tools you should consider for debugging your code can be found on this gist.

Leave a Reply