Hacker GitHub

← All repos

caolan/async

View on GitHub ↗ ★ 28,118 JavaScript

Async utilities for node and the browser

81 mentions on Hacker News by 76 people: 3 stories, 78 comments · first 2010-10-12 · latest 2020-01-21

Mentions per year 81 mentions · busiest year 2012 (21)
20082026
  1. …puts a tremendous toll on productivity (though many will deny it). There are libraries like async ( https://github.com/caolan/async ) and streamline ( https://github.com/Sage/streamlinejs ) which try to eliminate #2. They are band-aids:…
  2. …hard in async, especially when you are getting started. But there are libraries which help, such as https://github.com/caolan/async . - The library approach works for me and is a safer bet, but isn't the cleanest. If you are adventurous…
  3. The async nature of the language and platform is very easily managed with libs like https://github.com/caolan/async , I came from Django and to me, once I mastered the async nature and understood it, nodejs was a breath of fresh air.
  4. …to ugly nested callbacks. There are many libraries that make this more manageable, like async: https://github.com/caolan/async
    comment by illicium · 2012-09-09 · in Why I think Node.JS is a terrible platform
  5. We use a whole bunch, some of the main ones: - async => helpful async library https://github.com/caolan/async - nodeinspector => node js debugging in a nice webkit UI https://github.com/dannycoates/node-inspector - riakjs => for talking to…
  6. …is dealing with third party apis concurrently. Use a library like Async, it makes this really easy. https://github.com/caolan/async (assume redis, mongo, facebook, and callback are all functions) async.parallel([ redis, mongo, facebook],…
    comment by dc-tech-fan · 2012-05-16 · in The love and hate of Node.js
  7. …to performing database queries. I discovered Async.js at some point and haven't look back since: https://github.com/caolan/async
    comment by stephank · 2012-04-19 · in Write logic, not mechanics
  8. …structure your asynchronous code with coroutines or, if you are feeling less adventurous, async ( https://github.com/caolan/async ) is an excellent helper library for common asynchronous code patterns and it works on the client-side as…
    comment by shangaslammi · 2012-01-25 · in Node.js - A giant step backwards?
  9. I meant to link that. Now it's linked in the post, and it's here: https://github.com/caolan/async
    comment by dodger · 2012-01-19 · in The Trello Tech Stack
  10. It's open-source: https://github.com/caolan/async
    comment by gecko · 2012-01-19 · in The Trello Tech Stack
  11. …after the other, for example. Check out the Node.js async module for some cool patterns to use ( https://github.com/caolan/async ). In all, I wouldn't make the choice to move to Node.js because it has better performance or not, but the…
    comment by matan_a · 2012-01-09 · in From Java to Node.js
  12. …async.js[1] offers some good tools for different kinds of control flow with callbacks. [1]: https://github.com/caolan/async
    comment by thelastnode · 2012-01-02 · in Reducing Code Nesting
  13. …libraries[1] means that it's extremely rare for any code to be indented more than 5 blocks. [1] https://github.com/caolan/async is my lib of choice, but plenty of other suitable choices exist.
    comment by glenjamin · 2011-09-29 · in Fixing the callback spaghetti in node.js
  14. …it was because my approach was flawed. I abstracted more, and I also started using async.js ( https://github.com/caolan/async ), and everything was well in the world.
    comment by jscheel · 2011-09-29 · in Fixing the callback spaghetti in node.js
  15. I've been using: https://github.com/caolan/async It looks pretty decent in CoffeeScript: blah = (done) -> async.series [ (next) -> foo next (next) => @bar.baz 1, 2, 3, next (next) -> x = y z w next ], done
    comment by snprbob86 · 2011-09-29 · in Fixing the callback spaghetti in node.js
  16. …//github.com/joyent/node/wiki/modules#wiki-async-flow For a specific example, look at async.parallel: https://github.com/caolan/async
  17. This is a great library for doing those sorts of things with Node: https://github.com/caolan/async
    comment by pkulak · 2011-08-05 · in Node.js - A Giant Step Backwards
  18. …different styles of async programming. And there are a few other libraries that are a lot like https://github.com/caolan/async .
    comment by benatkin · 2011-08-05 · in Node.js - A Giant Step Backwards
  19. …author links to a library that makes the second example easy to rewrite in a short and elegant way. https://github.com/caolan/async#forEach Also the first example, the cache hitting and missing, could be rewritten with async , too.…
    comment by benatkin · 2011-08-05 · in Node.js - A Giant Step Backwards
  20. I've been very happy with "parallel" in the async library by caolan https://github.com/caolan/async
  21. …problem, and it's implemented poorly. Use a proper control-flow ( not "flow-control" ) library like https://github.com/caolan/async . Furthermore, why would you write an entire custom js parser for this? Why not use some of the many many…
  22. …of callbacks to a certain degree. Async[1] (the waterfall method) and Step[2] come to mind. [1]: https://github.com/caolan/async [2]: https://github.com/creationix/step
  23. …out the async library by caolan. Primarily designed for node.js, but also works with client-side. https://github.com/caolan/async It's got the nice feature of providing synchronous and asynchronous maps, reduces, filters and everything…
  24. I'm the author of the Async JavaScript library ( http://github.com/caolan/async ) and kept finding myself including it with the excellent Underscore.js for small and client-side projects. This seemed like overkill, so I've made a tiny…
    comment by caolanm · 2011-03-18
  25. …https://github.com/chriso/chain.js https://github.com/substack/node-chainsaw https://github.com/caolan/async https://github.com/kriszyp/promised-io https://github.com/kriszyp/node-promise https://github.com/technoweenie/node-chain-gang
  26. …a compiles-to-Javascript language. And then a side-mention for something actually in Javascript: https://github.com/caolan/async So, to make spaghetti-free Javascript... don't write Javascript? I'll keep looking, thanks.
  27. …been done. One of the best libraries for managing asynchronous code in JS without hiding it away is http://github.com/caolan/async I agree wholeheartedly, by the way. There's way too much scope for leaky abstractions when you try to hide…
    comment by stdbrouw · 2011-03-02 · in Three Routes to Spaghetti-Free Javascript
  28. We've been using the flow control helpers in async.js to help us with the nesting issue: ( https://github.com/caolan/async ). We use the waterfall most, as it allows one to run an array of function in a series with a callback at the end of…
  29. …is a drag. I found a helpful library that made some of my workflow easier to express and maintain: https://github.com/caolan/async And I'm pretty sure I could simplify my code quite a bit more if I understood functional program patterns…
  30. ▲ 2
    Async: Elegant asynchronous Javascript in node.js and the browser
    story by raganwald · 2011-02-07 · 0 comments
  31. …of asynchronous recursion (or similar). Thank you. This is what I've been using lately, pretty neat: http://github.com/caolan/async
    comment by Swizec · 2010-10-12 · in Rethinking JavaScript for-loops