

Michael Fogus is a member of Clojure/core with experience in distributed simulation, machine vision, and expert systems.
Meer over Michael FogusFunctional JavaScript
Introducing Functional Programming with Underscore.js
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
Inhoudsopgave
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
Anderen die dit boek kochten, kochten ook
Net verschenen
Rubrieken
- aanbestedingsrecht
- aansprakelijkheids- en verzekeringsrecht
- accountancy
- algemeen juridisch
- arbeidsrecht
- bank- en effectenrecht
- bestuursrecht
- bouwrecht
- burgerlijk recht en procesrecht
- europees-internationaal recht
- fiscaal recht
- gezondheidsrecht
- insolventierecht
- intellectuele eigendom en ict-recht
- management
- mens en maatschappij
- milieu- en omgevingsrecht
- notarieel recht
- ondernemingsrecht
- pensioenrecht
- personen- en familierecht
- sociale zekerheidsrecht
- staatsrecht
- strafrecht en criminologie
- vastgoed- en huurrecht
- vreemdelingenrecht