Description
Harness the power of the extensive range of functionalities that come with Underscore.JS
UnderscoreJS 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, AngularJS, BackboneJS, or any other framework you might be using, or you can use it with plain old JavaScript.
Rapid UnderscoreJS is a quick introduction to making the most of the UnderscoreJS library. Using a practical example project it shows you not just how but why you would want to use UnderscoreJS' methods.
We'll start off by learning what the UnderscoreJS library is and why you would want to use it, and discover how to incorporate UnderscoreJS into an existing Browser or NodeJS-based project. Further, we will dive deeper into the UnderscoreJS 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 UnderscoreJS helps you to efficiently develop web applications using a functional approach to JavaScript.
About the Author
Thomas Parslow is a Brighton-based freelance developer specialising in JavaScript and Python. He has been writing software for over almost two decades and has worked in both IT industry and academia for applications ranging from robotics control and computer vision through to touch surfaces and web applications. Thomas is a co-organizer of the successful learn-to-code workshop Coding For Humans and regularly speaks at technical events.
Basic knowledge
Rapid Underscore.JS is aimed at JavaScript web developers who have experience building web applications
What will you learn
Develop an International Space Station application using the highly useful UnderscoreJS library
Integrate UnderscoreJS with your browser or NodeJS-based JavaScript project
Process and transform arrays using Underscore’s iteration capabilities for performance enhancement
Group, sort, and filter of data for efficient data management
Use UnderscoreJS templating to simplify your HTML generation
Get a glimpse of other libraries such as Lodash that extend Underscore