Oreilly - Rapid Underscore.js
by Thomas Parslow | Publisher: Packt Publishing | Release Date: March 2015 | ISBN: 9781784391621
Harness the power of the extensive range of functionalities that come with Underscore.jsAbout This VideoTake functional programming to the next level with the aid of the Underscore library Learn why Underscore is a great addition to any JavaScript programmer's toolbeltCreate an exciting International Space Station project, one step at a timeIn DetailUnderscore.js is a library of utility functions for JavaScript that helps to minimize the complexity most users face in building programs, that is, simplifying their JavaScript code. It can be used with any other library or framework and provides many useful methods for this very reason. It works great as an addition to jQuery, Angular.js, Backbone.js, or any other framework you might be using, or you can use it with plain old JavaScript.Rapid Underscore.js is a quick introduction to making the most of the Underscore.js library. Using a practical example project it shows you not just how but why you would want to use Underscore.js' methods.We'll start off by learning what the Underscore.js library is and why you would want to use it, and discover how to incorporate Underscore.js into an existing Browser or Node.JS-based project. Further, we will dive deeper into the Underscore.js concepts that can help us deal with arrays and objects using Underscore's functions for filtering, grouping, and sorting. We will explore JavaScript's “this” context to manage binding and see how new functions can easily be made by partially applying the existing functions. We'll control the running of a function using debounce, throttle, once, and after, and also how this leads to simplifying techniques when building user interfaces and dealing with outside data sources. Finally, we'll learn Underscore's HTML templating abilities and chaining and finish up with a brief taste of libraries that extend Underscore.By the end of this course, you will understand how Underscore.js helps you to efficiently develop web applications using a functional approach to JavaScript.
- Chapter 1 : Introduction to Underscore
- What Is Underscore.js? 00:04:18
- Using Underscore.js on Your Page 00:03:11
- Chapter 2 : Processing Arrays
- Iteration and Mapping 00:05:35
- Finding and Filtering 00:03:35
- Sorting and Grouping 00:03:32
- Chapter 3 : Dealing with Objects
- Objects and Iteration 00:03:47
- Combining Objects and Plucking Keys 00:04:03
- Chpater 4 : Functions
- Binding Functions 00:04:11
- Debouncing Functions 00:02:58
- The "after" Method 00:03:36
- Chapter 5 : Wrapping Up
- Templating with Underscore 00:05:11
- Chaining 00:03:02
- Beyond Underscore 00:02:02