TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Beyond Node.js Express: An Intro to Koa.js and a Preview of Zones

15 pointsby bnoordhuisabout 11 years ago

1 comment

nailerabout 11 years ago
Compare:<p>- Pyramid of Doom (JS beginner)<p>- An array of functions in an async.waterfall (async module)<p>- A massive .then() chain (promises)<p>With: &#x27;put the next thing on the next line&#x27; like every sync programming language you used before:<p><pre><code> var fileContents = yield readFile(&#x27;myfile&#x27;, &#x27;utf8&#x27;); console.log(fileContents) </code></pre> This is the future.
评论 #7596941 未加载