Functional JavaScript

Introducing Functional Programming with Underscore.js

Specificaties
Paperback, 237 blz. | Engels
O'Reilly | 1e druk, 2013
ISBN13: 9781449360726
Rubricering
Hoofdrubriek : Computer en informatica
O'Reilly 1e druk, 2013 9781449360726
Verwachte levertijd ongeveer 16 werkdagen

Samenvatting

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

Specificaties

ISBN13:9781449360726
Taal:Engels
Bindwijze:paperback
Aantal pagina's:237
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:20-6-2013

Over Michael Fogus

Michael Fogus is a member of Clojure/core with experience in distributed simulation, machine vision, and expert systems.

Andere boeken door Michael Fogus

Inhoudsopgave

Foreword by Jeremy Ashkenas
Foreword by Steve Vinoski
Preface

1. Introducing Functional JavaScript
-The Case for JavaScript
-Getting Started with Functional Programming
-The Case for Underscore
-Summary

2. First-Class Functions and Applicative Programming
-Functions as First-Class Things
-Applicative Programming
-Data Thinking
-Summary

3. Variable Scope and Closures
-Global Scope
-Lexical Scope
-Dynamic Scope
-Function Scope
-Closures
-Summary

4. Higher-Order Functions
-Functions That Take Other Functions
-Functions That Return Other Functions
-Putting It All Together: Object Validators
-Summary

5. Function-Building Functions
-The Essence of Functional Composition
-Currying
-Partial Application
-Stitching Functions End-to-End with Compose
-Summary

6. Recursion
-Self-Absorbed Functions (Functions That Call Themselves)
-Codependent Functions (Functions Calling Other Functions That Call Back)
-Too Much Recursion!
-Recursion Is a Low-Level Operation
-Summary

7. Purity, Immutability, and Policies for Change
-Purity
-Immutability
-Policies for Controlling Change
-Summary

8. Flow-Based Programming
-Chaining
-Pipelining
-Data Flow versus Control Flow
-Summary

9. Programming Without Class
-Data Orientation
-Mixins
-}).call("Finis");

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

Index

Net verschenen

Rubrieken

Populaire producten

    Personen

      Trefwoorden

        Functional JavaScript