News for hackers. Stuff that matters.
Re:Demystifying Async Programming in JavaScript by fenomas on Friday March 24, 2017 @02:58AM (#13947195)
> Am I wrong in feeling that callback hell is a symptom of bad design?

I think so, yes. Chaining together four consecutive web service requests might be a bad smell, but there are lots of other reasons to use async calls - waiting on a timeout, a worker, using IndexedDB, waiting on a user event or an animation, etc, etc.

In general if something can be done asynchronously it probably should be, so depending on the domain I'd say a lack of callbacks can be suspicious.

There are no comments on this comment yet.