MountainWest JavaScript 2014 - Asynchronous JavaScript at Netflix by Jafar Husain

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=XE692Clb5LU



Duration: 30:14
11,139 views
138


By Jafar Husain

What's does a mouse drag event have in common with an Array of numbers?
The answer to this question may surprise you: they are both collections. This key insight holds the key to dramatically simplifying asynchronous programming in Javascript. In this talk you will learn how you can use the familiar Javascript Array methods to create surprisingly expressive asynchronous programs. Using just a few functions, you will learn how to do the following:
Declaratively build complex events out of simple events (ex. drag n' drop)
Coordinate and sequence multiple Ajax requests
Reactively update UI's in response to data changes
Eliminate memory leaks caused by neglecting to unsubscribe from events
Gracefully propagate and handle asynchronous exceptions
In this talk we'll be exploring the open-source Reactive Extensions (Rx) library (https://rx.codeplex.com/) which allows us to treat events as collections. You'll learn about how Netflix uses Rx on the client and the server, allowing us to build end-to-end reactive systems. We'll also contrast Rx with Promises, another popular approach to building asynchronous programs in Javascript.

Help us caption & translate this video!

http://amara.org/v/FG3D/




Other Videos By Confreaks


2014-04-18MountainWest JavaScript 2014 -Hardware Hacking for JS Developers by Jamison Dance
2014-04-18EmberConf 2014 Modeling the App Store and iTunes with Ember Data by Jeremy Mack
2014-04-18MountainWest JavaScript 2014 - Browser Package Management by Guy Bedford
2014-04-17MountainWest JavaScript 2014 - JavaScript SEO (The "Right" Way) by Jeff Whelpley
2014-04-17MountainWest JavaScript 2014 - Bringing the Web Back to the Blind by Ryan Florence
2014-04-17MountainWest JavaScript 2014 - JavaScript: A Gateway Language, or, Why You Should Teach Your Kids...
2014-04-17MountainWest JavaScript 2014 - And Benchmarks for All! by Alex Navasardyan
2014-04-17MountainWest JavaScript 2014 - Test-Driven Development of Ember.js Applications by Andy Pliszka
2014-04-17MountainWest JavaScript 2014 - Using TDD to Tame the Big Ball o' Mud by Brandon Hays
2014-04-17MountainWest JavaScript 2014 - Adding Even More Fun to Functional Programming With RXJS
2014-04-17MountainWest JavaScript 2014 - Asynchronous JavaScript at Netflix by Jafar Husain
2014-04-17MountainWest JavaScript 2014 - Unshackling JavaScript with Macros by James Long
2014-04-17Mountain West JavaScript 2014 - Be Predictable, Not Correct. by Pete Hunt
2014-04-13EmberConf 2014 Ember Components Transclude My Directives by John Paul
2014-04-13EmberConf 2014 Animations and Transitions in an Ember App by Edward Faulkner
2014-04-13EmberConf 2014 No more `grunt watch`: Modern build workflows with Broccoli
2014-04-13EmberConf 2014 Ember Data and the Way Forward by Igor Terzic
2014-04-12Kod.io 2014 - How to Get More Women in Tech in 5 Steps by Anika Lindtner
2014-04-12LA Ruby Conf 2014 - Go for the Rubyist by Mark Bates
2014-04-12LA Ruby Conf 2014 - Writing Games with Ruby by Mike Moore
2014-04-12LA Ruby Conf 2014 - Addressing sexism to build a better Ruby community