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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Write Better JavaScript with Promises

44 点作者 clockwork_189大约 11 年前

2 条评论

aroman大约 11 年前
This was a helpful and informative writeup, but it hasn&#x27;t really convinced me that I should use promises.<p>I currently use use callbacks and caolan&#x2F;async on node.js, using in-place callbacks where simple and async methods where things get complex. It&#x27;s been working very well so far, and it avoids my biggest issue with promises, which is that it seems I&#x27;d need <i>all</i> the modules I want to use to support promises, which they surely don&#x27;t, and mixing two styles seems worse than picking a poison.<p>Maybe someone can show me why my reasoning is flawed, though.
评论 #7610333 未加载
评论 #7610300 未加载
davexunit大约 11 年前
&gt;You&#x27;ve probably heard the talk around the water cooler about how promises are the future.<p>Just wait until the JavaScript developers learn about continuations!
评论 #7611705 未加载