Browse files

Fix ghf-md formatting

  • Loading branch information...
Jeffrey Horn
Jeffrey Horn committed Mar 7, 2016
1 parent 96fa7c6 commit 0715270b83542976e0f7f3c9381bdaa7f0bd6303
Showing with 4 additions and 0 deletions.
  1. +4 −0
@@ -23,10 +23,14 @@ By the end of this, developers should be able to:

## Callbacks versus Promises

Callback drawbacks:

- Callbacks can be messy when they're nested: "callback hell". See [`lib/copy-json.js`](lib/copy-json.js).
- Each callback will have to handle it's own errors if necessary.
- In complex programs, it will be hard to tell in what order callbacks fire.

Pros for Promises:

- Promises, like callbacks, make asynchronicity explict.
- Promises, unlike callbacks, have a predictable order of execution.
- Promises are easier to read than callbacks.

0 comments on commit 0715270

Please sign in to comment.