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.

Paving the way for the new Node.js

56 pointsby neuminoover 11 years ago

6 comments

bilalqover 11 years ago
A pity the title doesn&#x27;t mention rethinkdb at all. A new driver with generator support is very exciting news.<p>By the way, for those that are interested, here&#x27;s a link you can use to learn&#x2F;understand how generators can help with async control flow: <a href="http://blogs.atlassian.com/2013/11/harmony-generators-and-promises-for-node-js-async-fun-and-profit/" rel="nofollow">http:&#x2F;&#x2F;blogs.atlassian.com&#x2F;2013&#x2F;11&#x2F;harmony-generators-and-pr...</a>
NathanKPover 11 years ago
I&#x27;ve come to be a big fan of async.auto which allows me to break a large task down into smaller functional steps, define their required dependencies on each other, and then just let async take care of the magic of executing the operations in the correct order, and parallelizing operations when possible.<p>Do any of you promise and&#x2F;or generator users know of a good equivalent to async.auto?<p>I feel like promises and generators have potential but much of my code is based on async.auto and I feel like it would be complicated and painful to try to rewrite that with promises and generators.
评论 #7147498 未加载
hippippover 11 years ago
In the event that you find yourself wondering how these newfangled generators (used by the rethinkdash driver) work, see the following:<p><a href="http://blog.carbonfive.com/2013/12/01/hanging-up-on-callbacks-generators-in-ecmascript-6/" rel="nofollow">http:&#x2F;&#x2F;blog.carbonfive.com&#x2F;2013&#x2F;12&#x2F;01&#x2F;hanging-up-on-callback...</a>
orfover 11 years ago
For anyone using Python who likes the look of this Twisted supports exactly this using their (rather awesome) inlineCallbacks decorator.
评论 #7146828 未加载
sdegutisover 11 years ago
Serious question: What is the benefit of Node.js over other server-side platforms? Is it just because client-side developers are already familiar with JavaScript?
评论 #7147187 未加载
评论 #7146873 未加载
评论 #7147120 未加载
评论 #7148363 未加载
评论 #7147443 未加载
评论 #7146794 未加载
评论 #7146784 未加载
评论 #7147114 未加载
评论 #7147581 未加载
评论 #7150585 未加载
评论 #7147168 未加载
heydenberkover 11 years ago
&gt;&gt; Now look how wonderful the code looks with new driver.<p>Yikes. That is not so wonderful looking. But yeah, it&#x27;s better than callback hell.