Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/max-mapper/callback-hell
information about async javascript programming
https://github.com/max-mapper/callback-hell
Last synced: 20 days ago
JSON representation
information about async javascript programming
- Host: GitHub
- URL: https://github.com/max-mapper/callback-hell
- Owner: max-mapper
- Created: 2012-07-12T21:35:05.000Z (over 12 years ago)
- Default Branch: gh-pages
- Last Pushed: 2024-05-13T03:58:16.000Z (6 months ago)
- Last Synced: 2024-10-10T01:04:02.102Z (26 days ago)
- Language: JavaScript
- Homepage: http://callbackhell.com
- Size: 54.7 KB
- Stars: 847
- Watchers: 29
- Forks: 100
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-star - callback-hell
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.