
Functional JavaScript
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Cover
- Copyright
- Table of Contents
- Foreword by Jeremy Ashkenas
- Foreword by Steve Vinoski
- Preface
- What Is Underscore?
- Getting Underscore
- Using Underscore
- The Source Code for Functional JavaScript
- Running the Code in This Book
- Notational Conventions
- 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
- The Case for JavaScript
- Some Limitations of JavaScript
- Getting Started with Functional Programming
- Why Functional Programming Matters
- Functions as Units of Abstraction
- Encapsulation and Hiding
- Functions as Units of Behavior
- Data as Abstraction
- A Taste of Functional JavaScript
- On Speed
- The Case for Underscore
- Summary
- Chapter 2. First-Class Functions and Applicative Programming
- Functions as First-Class Things
- JavaScript's Multiple Paradigms
- Applicative Programming
- Collection-Centric Programming
- Other Examples of Applicative Programming
- Defining a Few Applicative Functions
- Data Thinking
- "Table-Like" Data
- Summary
- Chapter 3. Variable Scope and Closures
- Global Scope
- Lexical Scope
- Dynamic Scope
- JavaScript's Dynamic Scope
- Function Scope
- Closures
- Simulating Closures
- Using Closures
- Closures as an Abstraction
- Summary
- Chapter 4. Higher-Order Functions
- Functions That Take Other Functions
- Thinking About Passing Functions: max, finder, and best
- More Thinking About Passing Functions: repeat, repeatedly, and iterateUntil
- Functions That Return Other Functions
- Capturing Arguments to Higher-Order Functions
- Capturing Variables for Great Good
- A Function to Guard Against Nonexistence: fnull
- Putting It All Together: Object Validators
- Summary
- Chapter 5. Function-Building Functions
- The Essence of Functional Composition
- Mutation Is a Low-Level Operation
- Currying
- To Curry Right, or To Curry Left
- Automatically Currying Parameters
- Currying for Fluent APIs
- The Disadvantages of Currying in JavaScript
- Partial Application
- Partially Applying One and Two Known Arguments
- Partially Applying an Arbitrary Number of Arguments
- Partial Application in Action: Preconditions
- Stitching Functions End-to-End with Compose
- Pre- and Postconditions Using Composition
- Summary
- Chapter 6. Recursion
- Self-Absorbed Functions (Functions That Call Themselves)
- Graph Walking with Recursion
- Depth-First Self-Recursive Search with Memory
- Recursion and Composing Functions: Conjoin and Disjoin
- Codependent Functions (Functions Calling Other Functions That Call Back)
- Deep Cloning with Recursion
- Walking Nested Arrays
- Too Much Recursion!
- Generators
- The Trampoline Principle and Callbacks
- Recursion Is a Low-Level Operation
- Summary
- Chapter 7. Purity, Immutability, and Policies for Change
- Purity
- The Relationship Between Purity and Testing
- Separating the Pure from the Impure
- Property-Testing Impure Functions
- Purity and the Relationship to Referential Transparency
- Purity and the Relationship to Idempotence
- Immutability
- If a Tree Falls in the Woods, Does It Make a Sound?
- Immutability and the Relationship to Recursion
- Defensive Freezing and Cloning
- Observing Immutability at the Function Level
- Observing Immutability in Objects
- Objects Are Often a Low-Level Operation
- Policies for Controlling Change
- Summary
- Chapter 8. Flow-Based Programming
- Chaining
- A Lazy Chain
- Promises
- Pipelining
- Data Flow versus Control Flow
- Finding a Common Shape
- A Function to Simplify Action Creation
- Summary
- Chapter 9. Programming Without Class
- Data Orientation
- Building Toward Functions
- Mixins
- Core Prototype Munging
- Class Hierarchies
- Changing Hierarchies
- Flattening the Hierarchy with Mixins
- New Semantics via Mixin Extension
- New Types via Mixin Mixing
- Methods Are Low-Level Operations
- }).call("Finis")
- Appendix A. Functional JavaScript in the Wild
- Functional Libraries for JavaScript
- Functional JavaScript
- Underscore-contrib
- RxJS
- Bilby
- allong.es
- Other Functional Libraries
- Functional Programming Languages Targeting JavaScript
- ClojureScript
- CoffeeScript
- Roy
- Elm
- Appendix B. Annotated Bibliography
- Papers/Books/Blog Posts/Talks
- Presentations
- Blog Posts
- Journal Articles
- Index
- About the Author
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.