News for hackers. Stuff that matters.
Re:Node v7.5.0 Released by always_good on Friday February 03, 2017 @09:01AM (#13559804)
Callback hell isn't the characteristic of having a callback-based API. It's the code you get when you try to compose it and conditionally fork it without any better abstractions.

So promisifying a callback-based API does address it by either letting you use a yield/await abstraction or at the very least promise composition.

Wrapping a callback-based API is such a mechanical process that you can wrap entire modules at a time, so I'm not sure what's hellish about that when it gives you promises, something you can actually work with.

There are no comments on this comment yet.