from Hacker News

Write Better JavaScript with Promises

by clockwork_189 on 4/18/14, 4:57 PM with 8 comments

  • by aroman on 4/18/14, 5:37 PM

    This was a helpful and informative writeup, but it hasn't really convinced me that I should use promises.

    I currently use use callbacks and caolan/async on node.js, using in-place callbacks where simple and async methods where things get complex. It's been working very well so far, and it avoids my biggest issue with promises, which is that it seems I'd need all the modules I want to use to support promises, which they surely don't, and mixing two styles seems worse than picking a poison.

    Maybe someone can show me why my reasoning is flawed, though.

  • by davexunit on 4/18/14, 6:17 PM

    >You've probably heard the talk around the water cooler about how promises are the future.

    Just wait until the JavaScript developers learn about continuations!