max-mapper/callback-hell

information about async javascript programming

JavaScript

855

41 commits

updated May 13, 2024

See the code

See what people are saying

SourceMessageScoreDate

For example the article about callbacks basically says "use Promises" which is even more complicated then first class functions. Helpful resource: http://callbackhell.com/

on A Modern JavaScript Tutorial

0

Dec 8, 2020

I totally agree with the author here, but also would love to give some context since we have lived something like this before on Javascript IMHO: Callback hell around 2015. It used to be that if you wanted to do something async you'd have to create a new callback. This led into callback hell[1],…

on Today’s Javascript, from an outsider’s perspective

0

May 26, 2020

I recommend http://callbackhell.com/ and https://pouchdb.com/2015/05/18/we-have-a-problem-with-promis...

on History (and Future) of Asynchronous JavaScript

0

Jan 18, 2019

That’s a really insulting way to argue your point. I’ve been writing JavaScript for 15 years. Full time for probably six years, when I dropped Rails for Node and Ember. Right now I am programming full time in a promise shop for work, so I am very familiar with that. At home I write 100% callback…

on Why we rewrote Lua in JS (2017)

0

Apr 2, 2018

Changing the syntax is really useful to avoid Callback Hell by leveraging async/await: http://callbackhell.com/

on Show HN: Server.js – A modern Express alternative

0

Nov 4, 2017

This is another great reason never to use promises. "Callback Hell" is FUD spread by people who somehow missed the memo about the fact that you can add functions to your code. http://callbackhell.com explains it quite well. In running away from "Callback Hell" the JavaScript community ran straight…

on Never Mix Promises and Callbacks in NodeJS

0

Apr 7, 2017

"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/

on Demystifying Async Programming in JavaScript

0

Mar 23, 2017

> It's still pretty standard to compile es6 down to at least es2015 Yea, but that means if I want to use your library, I need a build chain. It used to be I could just do require("you") or and be done with it. That's what we lost. Actually I need n buildchains, one for each npm module I use. And…

on Ask HN: Will front end development ever move away from JavaScript?

0

Mar 12, 2017

Nevermind that Javascript has a hideous side too: http://callbackhell.com/ And don't get me started with Java's verbosity. Half the time Java seems completely unusable without an auto-completing IDE. And in all honesty I am a big Python fan, but only because it seems like the lesser of all evils in…

on PEP 308 and why I still hate Python

0

Mar 10, 2017

Callback Hell (2016)

210

Feb 15, 2017

README

callback-hell

callback-hell is a repository that demonstrates the problem of callback hell in JavaScript, and provides examples of how to avoid it.

What is callback hell?

Callback hell is a term used to describe the situation when the code that relies heavily on callbacks becomes unreadable and difficult to maintain. This often occurs when dealing with asynchronous operations in JavaScript.

How does this repository help?

This repository provides examples of callback hell in JavaScript and demonstrates how to avoid it by using various techniques such as Promises and async/await. The examples are organized in a way that makes it easy to compare the code that uses callbacks with the code that uses the alternative techniques.

How to use this repository?

This repository can be used as a reference to learn about callback hell and how to avoid it. You can clone this repository and run the examples to see the difference between the code that uses callbacks and the code that uses Promises or async/await.

Contributing

If you find any issues or have suggestions for improvements, feel free to open an issue or a pull request. Contributions are always welcome!

License

This repository is licensed under the MIT license. See the LICENSE file for more information.

max-mapper/callback-hell

information about async javascript programming

JavaScript

855

41 commits

updated May 13, 2024

See the code

See what people are saying

SourceMessageScoreDate

For example the article about callbacks basically says "use Promises" which is even more complicated then first class functions. Helpful resource: http://callbackhell.com/

on A Modern JavaScript Tutorial

0

Dec 8, 2020

I totally agree with the author here, but also would love to give some context since we have lived something like this before on Javascript IMHO: Callback hell around 2015. It used to be that if you wanted to do something async you'd have to create a new callback. This led into callback hell[1],…

on Today’s Javascript, from an outsider’s perspective

0

May 26, 2020

I recommend http://callbackhell.com/ and https://pouchdb.com/2015/05/18/we-have-a-problem-with-promis...

on History (and Future) of Asynchronous JavaScript

0

Jan 18, 2019

That’s a really insulting way to argue your point. I’ve been writing JavaScript for 15 years. Full time for probably six years, when I dropped Rails for Node and Ember. Right now I am programming full time in a promise shop for work, so I am very familiar with that. At home I write 100% callback…

on Why we rewrote Lua in JS (2017)

0

Apr 2, 2018

Changing the syntax is really useful to avoid Callback Hell by leveraging async/await: http://callbackhell.com/

on Show HN: Server.js – A modern Express alternative

0

Nov 4, 2017

This is another great reason never to use promises. "Callback Hell" is FUD spread by people who somehow missed the memo about the fact that you can add functions to your code. http://callbackhell.com explains it quite well. In running away from "Callback Hell" the JavaScript community ran straight…

on Never Mix Promises and Callbacks in NodeJS

0

Apr 7, 2017

"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/

on Demystifying Async Programming in JavaScript

0

Mar 23, 2017

> It's still pretty standard to compile es6 down to at least es2015 Yea, but that means if I want to use your library, I need a build chain. It used to be I could just do require("you") or and be done with it. That's what we lost. Actually I need n buildchains, one for each npm module I use. And…

on Ask HN: Will front end development ever move away from JavaScript?

0

Mar 12, 2017

Nevermind that Javascript has a hideous side too: http://callbackhell.com/ And don't get me started with Java's verbosity. Half the time Java seems completely unusable without an auto-completing IDE. And in all honesty I am a big Python fan, but only because it seems like the lesser of all evils in…

on PEP 308 and why I still hate Python

0

Mar 10, 2017

Callback Hell (2016)

210

Feb 15, 2017

README

callback-hell

callback-hell is a repository that demonstrates the problem of callback hell in JavaScript, and provides examples of how to avoid it.

What is callback hell?

Callback hell is a term used to describe the situation when the code that relies heavily on callbacks becomes unreadable and difficult to maintain. This often occurs when dealing with asynchronous operations in JavaScript.

How does this repository help?

This repository provides examples of callback hell in JavaScript and demonstrates how to avoid it by using various techniques such as Promises and async/await. The examples are organized in a way that makes it easy to compare the code that uses callbacks with the code that uses the alternative techniques.

How to use this repository?

This repository can be used as a reference to learn about callback hell and how to avoid it. You can clone this repository and run the examples to see the difference between the code that uses callbacks and the code that uses Promises or async/await.

Contributing

If you find any issues or have suggestions for improvements, feel free to open an issue or a pull request. Contributions are always welcome!

License

This repository is licensed under the MIT license. See the LICENSE file for more information.

Significant stargazers

Julián Duque

1,977 followers · starred Aug 2013

Oleg Efimov

309 followers · starred Jul 2012

Subhaditya Nath

20 followers · starred Jul 2022

lra

282 followers · starred Nov 2018