Book description
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
Publisher resources
Table of contents
- Functional JavaScript
- Dedication
- Foreword by Jeremy Ashkenas
- Foreword by Steve Vinoski
- Preface
- 1. Introducing Functional JavaScript
- 2. First-Class Functions and Applicative Programming
- 3. Variable Scope and Closures
- 4. Higher-Order Functions
- 5. Function-Building Functions
- 6. Recursion
- 7. Purity, Immutability, and Policies for Change
- 8. Flow-Based Programming
- 9. Programming Without Class
- A. Functional JavaScript in the Wild
- B. Annotated Bibliography
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Functional JavaScript
- Author(s):
- Release date: June 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449360726
You might also like
book
Beginning Functional JavaScript: Uncover the Concepts of Functional Programming with EcmaScript 8
Understand functional programming concepts and the functional nature of the JavaScript language. Starting with an introduction …
book
Mastering Javascript Functional Programming
Master Functional Programming techniques with this comprehensive guide for writing cleaner, safer, high-performing JavaScript codes About …
book
JavaScript Everywhere
JavaScript is the little scripting language that could. Once used chiefly to add interactivity to web …
book
Mastering JavaScript Functional Programming - Second Edition
Explore the functional programming paradigm and the different techniques for developing better algorithms, writing more concise …