News for hackers. Stuff that matters.
Re:Demystifying Async Programming in JavaScript by dcwca on Thursday March 23, 2017 @05:26PM (#13944477)
"Callback hell" as it is described in this article is a symptom of not understanding how to flatten your code for readability. Deep nesting is a trap in every language, it's the programmers job to know how to write readable code.

http://callbackhell.com/

Re:Demystifying Async Programming in JavaScript by always_good on Friday March 24, 2017 @10:09AM (#13948976)
The problem with callbacks isn't the indentation. It's that downstream dependent logic has to take place in the callback.

If you have two logical branches that share a downstream, now you have a fork with identical callbacks.

So reducing callback indentation comes at the expense of indirection. You're not changing the nesting at all. Usually just brooming stuff under the rug.