News for hackers. Stuff that matters.
Re:Demystifying Async Programming in JavaScript by always_good on Friday March 24, 2017 @10:04AM (#13948948)
On the client, you are more likely to have a single API request. But on the server, you could be doing any mix of async things in a chain of dependencies + conditional logic.

Callback hell isn't a symptom of bad design. It's what happens when you have a lot of async function calls. Flattening callback hell often just contributes to callback hell with indirection, making it even harder to follow.

But thankfully we have promises, now.

There are no comments on this comment yet.