Compare:
- Pyramid of Doom (JS beginner)
- An array of functions in an async.waterfall (async module)
- A massive .then() chain (promises)
With: 'put the next thing on the next line' like every sync programming language you used before:
var fileContents = yield readFile('myfile', 'utf8'); console.log(fileContents)
Compare:
- Pyramid of Doom (JS beginner)
- An array of functions in an async.waterfall (async module)
- A massive .then() chain (promises)
With: 'put the next thing on the next line' like every sync programming language you used before:
This is the future.