Spotlight Front-End
Web Dev
  • 2014-11-29 00:00:00 2014-11-29 00:00:00 America/Toronto Spotlight Front-End Toronto FITC
  • Toronto

Presentation

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

  1. The key differences between promises and callbacks.
  2. How to use promises to simplify architecture.
  3. How to handle errors in promises.
  4. How to test promise-based code.
  5. When to use promises vs publish-subscribe channels.