Functional JavaScript

Functional JavaScript
Besorgungstitel - wird vorgemerkt | Lieferzeit: Besorgungstitel - Lieferbar innerhalb von 10 Werktagen I

29,00 €*

Alle Preise inkl. MwSt. | zzgl. Versand
Artikel-Nr:
9781449360726
Veröffentl:
2013
Erscheinungsdatum:
16.07.2013
Seiten:
258
Autor:
Michael Fogus
Gewicht:
423 g
Format:
233x207x20 mm
Sprache:
Englisch
Beschreibung:

Michael Fogus is software developer with experience in distributedsimulation, machine vision, and expert systems construction. He's actively involved in the Clojure and Scala communities.
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
Foreword by Jeremy Ashkenas;Foreword by Steve Vinoski;Preface;What Is Underscore?;Whom Functional JavaScript Is Written For;A Roadmap for Functional JavaScript;Conventions Used in This Book;Using Code Examples;Safari® Books Online;How to Contact Us;Acknowledgments;Chapter 1: Introducing Functional JavaScript;1.1 The Case for JavaScript;1.2 Getting Started with Functional Programming;1.3 The Case for Underscore;1.4 Summary;Chapter 2: First-Class Functions and Applicative Programming;2.1 Functions as First-Class Things;2.2 Applicative Programming;2.3 Data Thinking;2.4 Summary;Chapter 3: Variable Scope and Closures;3.1 Global Scope;3.2 Lexical Scope;3.3 Dynamic Scope;3.4 Function Scope;3.5 Closures;3.6 Summary;Chapter 4: Higher-Order Functions;4.1 Functions That Take Other Functions;4.2 Functions That Return Other Functions;4.3 Putting It All Together: Object Validators;4.4 Summary;Chapter 5: Function-Building Functions;5.1 The Essence of Functional Composition;5.2 Currying;5.3 Partial Application;5.4 Stitching Functions End-to-End with Compose;5.5 Summary;Chapter 6: Recursion;6.1 Self-Absorbed Functions (Functions That Call Themselves);6.2 Codependent Functions (Functions Calling Other Functions That Call Back);6.3 Too Much Recursion!;6.4 Recursion Is a Low-Level Operation;6.5 Summary;Chapter 7: Purity, Immutability, and Policies for Change;7.1 Purity;7.2 Immutability;7.3 Policies for Controlling Change;7.4 Summary;Chapter 8: Flow-Based Programming;8.1 Chaining;8.2 Pipelining;8.3 Data Flow versus Control Flow;8.4 Summary;Chapter 9: Programming Without Class;9.1 Data Orientation;9.2 Mixins;9.3 }).call("Finis");;Functional JavaScript in the Wild;Functional Libraries for JavaScript;Functional Programming Languages Targeting JavaScript;Annotated Bibliography;Papers/Books/Blog Posts/Talks;Presentations;Blog Posts;Journal Articles;Colophon;

Kunden Rezensionen

Zu diesem Artikel ist noch keine Rezension vorhanden.
Helfen sie anderen Besuchern und verfassen Sie selbst eine Rezension.