Abstract
The evented/asynchronous nature of Node.js means that it is possible to end up with deeply nested callbacks. There are various strategies in JavaScript that help reduce the callback nesting. In this chapter, we will explore these patterns. These help maintain readability, but more importantly these strategies will help decrease the likelihood of bugs creeping up on you. I promise.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Basarat Ali Syed
About this chapter
Cite this chapter
Syed, B.A. (2014). Simplifying Callbacks. In: Beginning Node.js. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0187-9_10
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0187-9_10
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0188-6
Online ISBN: 978-1-4842-0187-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books