Building a Better Web
June 19–20, 2017: Training
June 20–22, 2017: Tutorials & Conference
San Jose, CA

Async in JavaScript and readability in Redux

Nicole Chung (TWG)
9:50am–10:30am Wednesday, June 21, 2017
Future JS & Functional
Location: 210 BF
Secondary topics:  Functional Programming (Elm, ClojureScript, Erlang), Future of JavaScript (ES7, ES8, WebAssembly, etc.), JavaScript/ES6
Average rating: ***..
(3.90, 10 ratings)

Who is this presentation for?

  • Frontend and full stack JavaScript developers

Prerequisite knowledge

  • Experience with React

What you'll learn

  • Gain a deeper knowledge of JavaScript

Description

Managing asynchronous code in JavaScript can be challenging. Originally, the solution was callbacks, but this created a readability nightmare. In the last few years, JavaScript has tried to solve this with Promises, generators, and now, async/await. And before Promises became native to JavaScript with ES6, there were a myriad of Promise libraries, notably Bluebird and $q. What this really means, however, is that there are now even more ways to make things hard to read and confuse the rest of your team.

Nicole Chung explores the brief timeline of handling async in JS, from callbacks, Promises, and fancy callbacks (thunks) to generators and async/await, examining the readability and testability of each approach in detail.

Photo of Nicole Chung

Nicole Chung

TWG

As a Software Engineer at Toronto-based product studio TWG, Nicole Chung works with Node, React, and Redux to build fast and efficient user interfaces. She is also an occasional lead instructor at Canada Learning Code, a non-profit dedicated to building technical skills for all Canadians, and has mentored at at HackerYou for their part-time JavaScript courses.