Overview
Promises are an important abstraction for dealing with asynchronicity and uncertainty in JavaScript. Heavy reliance on promises makes it possible to simplify JavaScript architecture, by allowing components to not worry about the state of operations that may or may not have completed. The talk will consider advantages of promises-based architecture over the use of callbacks and publish-subscribe approaches.
Objective
Understand how promises can simplify design.
Target Audience
Intermediate to advanced JavaScript developers.
Assumed Audience Knowledge
Good understanding of the use of callbacks in JavaScript or basic familiarity with promises.
Five things audience members will learn
- The key differences between promises and callbacks.
- How to use promises to simplify architecture.
- How to handle errors in promises.
- How to test promise-based code.
- When to use promises vs publish-subscribe channels.