Skip to content

Instantly share code, notes, and snippets.

View ArnaudWopata's full-sized avatar

Arnaud Rinquin ArnaudWopata

  • Wopata
  • Bordeaux, France
View GitHub Profile
@ArnaudWopata
ArnaudWopata / README.md
Last active August 29, 2015 14:07
Clean Express controllers using currying and promises

Purpose

Demonstrate how to write clean express controllers using function currying and promises.

  • Promises helps avoiding callback hell
  • Currying helps code reuse

Install, run, test

@ArnaudWopata
ArnaudWopata / understand_promises.js
Created July 7, 2014 15:28
Understand promises
var Q = require('kew');
function failureSync(){
throw new Error('sync failure');
};
function failureAsync(){
return Q.reject(new Error('async failure'));
};
@ArnaudWopata
ArnaudWopata / snippets.cson
Created July 2, 2014 13:37
Atom JS BDD snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
I mostly agree.
On subjects that are close to my daily problems:
Angular vs. React: his description is good. ReactJS and WebComponents certainly are the future. Even if ReactJS has been publicly released not too long ago, its been proven solid. The Angular framework brings comfort to development by structuring it. Now that we are more experienced on javascript rich application, we could design our own application structures. Taking a tour on ReactJS has been on my plans for a few weeks, after it buzzed on the JS sphere. Only thing I would oppose: I am not sure that ReactJS popularity will grow fast enough to pass Angular before WebComponents wins the battle.
About: Offline. I don't have anything to add. Not mature yet.