A quick POC about ambiguous promise chaining.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
node_modules
README.md
expected.coffee
package.json
whatididntexpected.coffee

README.md

Purpose

I have wasted hours understanding the subtlety of promises chaining. I think its worth sharing.

The article is available on my blog

To make it work

If you don't have it ready install coffee script:

npm install -g coffee-script

Then in the project folder:

npm install

To check what can be confusing look at the file and call them through:

coffee expected.coffee
coffee whatididntexpected.coffee