Functional JavaScript: Introducing Functional Programming with Underscore.js

Overview

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 ...

See more details below
Paperback
$21.98
BN.com price
(Save 26%)$29.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (14) from $13.99   
  • New (11) from $16.62   
  • Used (3) from $13.99   
Functional JavaScript: Introducing Functional Programming with Underscore.js

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$11.49
BN.com price
(Save 42%)$19.99 List Price

Overview

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
Read More Show Less

Product Details

  • ISBN-13: 9781449360726
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 6/18/2013
  • Edition number: 1
  • Pages: 237
  • Sales rank: 952,911
  • Product dimensions: 7.00 (w) x 9.10 (h) x 0.90 (d)

Meet the Author

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.

Read More Show Less

Table of Contents

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;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)