Skip to content

Instantly share code, notes, and snippets.

View sergibondarenko's full-sized avatar
🎯
Adapting to the prevailing level of light to be able to see clearly

Sergii Bondarenko sergibondarenko

🎯
Adapting to the prevailing level of light to be able to see clearly
View GitHub Profile
@sergibondarenko
sergibondarenko / promises.md
Created May 31, 2017 15:57 — 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.
@sergibondarenko
sergibondarenko / promises.md
Created May 31, 2017 15:57 — 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.
@sergibondarenko
sergibondarenko / index.js
Created August 27, 2017 15:01 — forked from casperin/index.js
Karma, PhantomJs, Jasmine setup using npm
/**
* I couldn't find a super simple example of how to run Karma, PhantomJs, with
* Jasmine tests via npm, so eventually I decided to create my own. Maybe
* someone will find it useful.
*
*
* Installation (using npm):
*
* npm install -g karma-cli
* npm install -g karma --save-dev