Learning Underscore.js

Explore the Underscore.js library by example using a test-driven development approach

Learning Underscore.js

Alex Pop

1 customer reviews
Explore the Underscore.js library by example using a test-driven development approach
Mapt Subscription
FREE
$29.99/m after trial
eBook
$22.40
RRP $31.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$22.40
$39.99
$29.99p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784393816
Paperback224 pages

Book Description

Underscore.js is one of the most popular modern JavaScript libraries used for functional programming. It can be used as a base for building complex JavaScript applications in a sustainable manner and for building other JavaScript libraries. It embraces functional programming principles but is not opinionated and can be used with imperative, object-oriented, functional, or other programming styles.

This book explores how to use Underscore.js to power your code and understand modern JavaScript development concepts while applying a lightweight and efficient workflow to build applications.

The book starts with an incremental Underscore.js introduction by exploring key JavaScript concepts. You will then explore the basic features of Underscore.js in action and establish a lightweight development workflow that allows the provided examples to be guided by tests. The book then covers the functionality of Underscore.js with in-depth examples and explanations for understanding and applying the Underscore.js API. You'll also learn how to use Underscore.js as a base for your own modules and libraries within an object-oriented or functional programming style, and will be able to explore Underscore.js use cases in different environments.

Eventually, you'll learn about libraries that are closely related with Underscore.js, how to share code between client and server, and how to prepare for the upcoming JavaScript standard ECMAScript 6.

Table of Contents

Chapter 1: Getting Started with Underscore.js
Why Underscore
Getting started with Underscore by example
Key Underscore functions
Functional programming fundamentals
Useful patterns and practices for JavaScript applications targeting ECMAScript 5
Setting up a development workflow for exploring Underscore
Testing JavaScript code with Jasmine
Summary
Chapter 2: Using Underscore.js with Collections
Key Underscore functions revisited – each, map, and reduce
Searching and filtering
Aggregations and transformations
Other collection-based functions
Summary
Chapter 3: Using Underscore.js with Arrays, Objects, and Functions
Arrays
Objects
Functions
Utility functions
Summary
Chapter 4: Programming Paradigms with Underscore.js
The object-oriented programming paradigm
The functional programming paradigm
Migrating to a functional programming style
Functional programming with Underscore.js
Summary
Chapter 5: Using Underscore.js in the Browser, on the Server, and with the Database
Using Underscore in the browser
Enhancing examples output with Bootstrap
Using Underscore on the server with Node.js
Using Underscore with MongoDB
Using Underscore with PostgreSQL
Summary
Chapter 6: Related Underscore.js Libraries and ECMAScript Standards
Using the Underscore-contrib library
Using the lodash library
Underscore and JavaScript standards
Summary
Chapter 7: Underscore.js Build Automation and Code Reusability
Build automation with Gulp
Reusing code based on Underscore between client and server
Adding ECMAScript 2015 (ES6) support to Browserify
Summary

What You Will Learn

  • Reference and call Underscore.js functions using a modern JavaScript development workflow
  • Apply Underscore.js to JavaScript arrays, objects, and functions
  • Take advantage of object-oriented or functional programming techniques with Underscore.js
  • Leverage Underscore.js to create code that targets client, server, or database contexts
  • Extend Underscore.js functionality with other closely related libraries
  • Reuse Underscore.js-based code between client and server applications
  • Prepare for the upcoming JavaScript standard ECMAScript 6 and support older browsers

Authors

Table of Contents

Chapter 1: Getting Started with Underscore.js
Why Underscore
Getting started with Underscore by example
Key Underscore functions
Functional programming fundamentals
Useful patterns and practices for JavaScript applications targeting ECMAScript 5
Setting up a development workflow for exploring Underscore
Testing JavaScript code with Jasmine
Summary
Chapter 2: Using Underscore.js with Collections
Key Underscore functions revisited – each, map, and reduce
Searching and filtering
Aggregations and transformations
Other collection-based functions
Summary
Chapter 3: Using Underscore.js with Arrays, Objects, and Functions
Arrays
Objects
Functions
Utility functions
Summary
Chapter 4: Programming Paradigms with Underscore.js
The object-oriented programming paradigm
The functional programming paradigm
Migrating to a functional programming style
Functional programming with Underscore.js
Summary
Chapter 5: Using Underscore.js in the Browser, on the Server, and with the Database
Using Underscore in the browser
Enhancing examples output with Bootstrap
Using Underscore on the server with Node.js
Using Underscore with MongoDB
Using Underscore with PostgreSQL
Summary
Chapter 6: Related Underscore.js Libraries and ECMAScript Standards
Using the Underscore-contrib library
Using the lodash library
Underscore and JavaScript standards
Summary
Chapter 7: Underscore.js Build Automation and Code Reusability
Build automation with Gulp
Reusing code based on Underscore between client and server
Adding ECMAScript 2015 (ES6) support to Browserify
Summary

Book Details

ISBN 139781784393816
Paperback224 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Node.js Blueprints Book Cover
Node.js Blueprints
$ 32.99
$ 6.60
Learning Web Development with Bootstrap and AngularJS Book Cover
Learning Web Development with Bootstrap and AngularJS
$ 39.99
$ 28.00
Learning JavaScript Data Structures and Algorithms Book Cover
Learning JavaScript Data Structures and Algorithms
$ 26.99
$ 5.40