JSFoo 2012

It’s like kung fu with JavaScript and objects! All about building full size apps in JavaScript.

Score with Underscore.js

Submitted by Shreyank Gupta (@shreyankg) on Wednesday, 1 August 2012

Section: Browser Technical level: Intermediate Session type: Tutorial

View proposal in schedule

Abstract

How Underscore.js brings functional programming into JavaScript and how it ties with Backbone.js

Outline

Underscore.js provides a set of utilities which allows a JavaScript programmer to go functional. Quoting the documentation, "It's the tie to go along with jQuery's tux, and Backbone.js's suspenders"

In the tutorial I aim to cover why functional programming is the way to go for JavaScript programmers and how Underscore.js makes it a reality.

I'll walk through each, map, reduce, filter, select etc. and most of the useful functional bits of Underscore. I'll also cover the other bits including bind, throttle etc. and features like chaining.

Underscore.js makes you think differently while writing JavaScript. That's what I want the audience to take back from the session.

Requirements

Functional programming basics. JavaScript Basics.

Speaker bio

Shreyank Gupta works as a Software Engineer at Red Hat. He writes code in Python, Ruby and JavaScript.

Links

Slides

https://dl.dropbox.com/u/24971259/underscorejs.html

Comments

  • Sujay Krishna Suresh 7 years ago (edited 7 years ago)

    It’d be great if you can cover better alternatives like Lo-Dash too. Check out the performance improvements it brings here, considering that this was built by the people behind jsperf.com.

    If you look at the code , this has much more complicated & complex JavaScript constructs which can be enlightening.

  • sankarshan (@sankarshan) 7 years ago

    Needs some work about what are the pre-requisites for the Tutorial.

  • Rooparam Choudhary (@rooparam) 6 years ago

    YUI already have most of this API

Login with Twitter or Google to leave a comment