Skip to content

Instantly share code, notes, and snippets.

View geoapi's full-sized avatar

George geoapi

  • University of Babylon , College of IT
View GitHub Profile
@geoapi
geoapi / 00-introduction.md
Last active September 24, 2017 15:35 — forked from dwayne/00-introduction.md
How to build a Hypermedia-Driven REST API - Notes
@geoapi
geoapi / promises.md
Created October 8, 2015 11:46 — forked from domenic/promises.md
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.