Modern Asynchronous JavaScript

When it comes to writing asynchronous code in JavaScript, callbacks can be a hassle. In this course, you'll see alternatives to callbacks, including ES6 promises, and how to combine generators with promises to write async code in a synchronous style.
Course info
Rating
(94)
Level
Advanced
Updated
Aug 8, 2016
Duration
6h 35m
Table of contents
Callbacks
Lab Setup
Building a Promise Framework
Chaining Operations (Promises)
Cushioning Callbacks
ES6 Promises and Beyond
Building a Generator-based Control Flow Function
ES2018 Async/Await and Other Generator Control Flow Libraries
Description
Course info
Rating
(94)
Level
Advanced
Updated
Aug 8, 2016
Duration
6h 35m
Description

In this course, Modern Asynchronous JavaScript, you will learn how to write asynchronous code that's a joy to maintain, not a burden. You will learn how to reason about promises, an alternative to callbacks, by creating a promise framework. Seeing promises from the perspective of a producer helps reason better about being the consumer of promise based APIs. Then, you will learn about ES6 generators and how to combine them with promises to write code that looks synchronous but that's actually asynchronous. This style cuts out the inherent verbosity of callbacks and even promises alone. When you're finished with this course, you'll know how to write asynchronous code in a fashion that's not a hassle to maintain.

About the author
About the author

Wes Higbee is passionate about helping companies achieve remarkable results with technology and software. He’s had extensive experience developing software and working with teams to improve how software is developed to meet business objectives. Wes launched Full City Tech to leverage his expertise to help companies delight customers.

More from the author
What Is DevOps: Executive Briefing
Beginner
22m
Nov 2, 2018
Implementing a Self-hosted Docker Registry
Intermediate
4h 8m
Jun 5, 2018
Webpack: Transpiling and Bundling JavaScript
Intermediate
4h 55m
Jan 30, 2018
More courses by Wes Higbee
Section Introduction Transcripts
Section Introduction Transcripts

Lab Setup
Before we dive in and create a Promise framework, let's get your computer set up for you to be able to follow along. If you look me up on GitHub under g0t4 and then search for the repository pluralsight-modern-async, if you open that up you're going to find two branches inside of here. First is the master branch, this is the starting point for this course. So you want to clone this to your local computer. There is another branch on here as well called step-by-step. This is the ending point for this course. So this contains all the individual comimits, and if you look at the commit history, there's a rich history here for you. This contains all of the individual commits for you to work through step by step everything throughout this entire course. I committed just about at the end of every single video. So you can come out here if you ever get stuck and copy and paste to pick up where I left off if you're having a problem with a particular scenario. So feel free to do that. But for now go back to the master branch and go ahead and clone this down to your computer. So come over to the right hand side here, click clone and download, make sure you're on https and then copy this URL. Once you have that copied, then hop over to the command line or whatever git client you prefer and run a git clone and paste in that repository URL. That will pull everything down to your local computer change into that directory and then if you list the contents here you will see the individual files that are out on the starting point for this GitHub repository. And again keep an eye on this repository because I have all the individual commits out there for you if you ever get stuck throughout this course.