TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

15 点作者 bnoordhuis大约 11 年前

1 comment

nailer大约 11 年前
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 未加载