• Sunday , 7 June 2020

MountainWest JavaScript 2014 – Asynchronous JavaScript at Netflix by Jafar Husain

Code Canyon



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/

Original source

3d Ocean

Related Posts

8 Comments

  1. KL Tah
    March 4, 2018 at 17:15

    Holy pumpkin seeds batman.. I've watched many other jafar async presentations before and struggled to grasp it. But that last example here was gold. Absolute gold. In terms of the of the big idea anyway

  2. KL Tah
    March 4, 2018 at 17:15

    With concatAll for the buffered value 4, what determines how long before it is added on to the end of the 3 (i. e. how many dots to put between 3…4)?

  3. Steven
    March 4, 2018 at 17:15

    I've never thought that a flatten list (concatAll()) method could be used like this. Pretty wild.

  4. Stephen James
    March 4, 2018 at 17:15

    Excellent presentation, esp. compared to some others I have watched lately.

  5. Roydell Clarke
    March 4, 2018 at 17:15

    This guy is a Teacher

  6. paradoxfx
    March 4, 2018 at 17:15

    Nice talk. It's nice to see that Functional Programming become more popular. Being a Scala developer I've found it's very helpful 

  7. Clay Morton
    March 4, 2018 at 17:15

    concatAll() seems to require Reactive-Extensions/RxJS.

  8. Daniel Gasienica
    March 4, 2018 at 17:15

    Great talk!

Leave A Comment

You must be logged in to post a comment.