a comparison of imperative and declarative javascript
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
brain
pinky
index.js
narf-point.gif
package.json
readme.md
test.txt

readme.md

About

This example compares traditional callbacks with promises, currys, and functional programming.

The module called brain uses the complex imperative callback pattern, while the module called pinky uses more simplistic declarative syntax accomplished through promises and function currys.

Usage

  • Clone this directory
  • Unpack it
  • CD into it
  • Then:
node . 'test.txt'