callback-hell icon indicating copy to clipboard operation
callback-hell copied to clipboard

information about async javascript programming

Results 20 callback-hell issues
Sort by recently updated
recently updated
newest added

Using callbacks comes with many issues and indentation with curly braces jungle is but one of them. By passing a callback you are passing the control over to a potentially...

Maybe it would be useful to mention callback binding, I know that personally was confusing for me in the beginning. For instance, you might expect this to work: ``` js...

Good stuff! I think it's worth also mentioning async.js (https://github.com/caolan/async/). I use it a lot to keep async stuff in check, especially parallel().

Thanks for doing this! Something which throws me whenever I look at callback code, is where the "err, response, body" arguments to postResponse come from. I feel like this is...

Hi. all You can check my implementation here: https://gist.github.com/askucher/7751044 What you think?

An example could be: ``` javascript app.get('something', function (req, res) { res.render('view1'); }); app.get('other', function (req, res) { res.render('view1'); }); ``` Refactor to: ``` javascript function respondWithView (viewName) { return...

Going over the JS concepts, I found this project referenced by the [Mozilla website](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining). It was a shame when I realized the [function hoisting link](https://gist.github.com/maxogden/4bed247d9852de93c94c) was broken. After not finding...

The links in `index.html` on line 165 and 228 for function hoisting are no longer available. Is there any alternative or updated links?