Promises Patterns & Anti-patterns
This is a do-it-yourself exercise in understanding promises, their usage patterns, and how to avoid common anti-patterns.
How to
- Read through the slides to understand the terms used.
- In your terminal:
git clone https://github.com/rdoh/promises.git
cd promises
npm install
node
- One block at a time, copy and paste each example from promise-examples.js into the terminal.
- Follow along with the comments in your favourite IDE.