Simplifying Callbacks

  • Basarat Ali Syed
Chapter

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.

Keywords

Error Handling Member Function Callback Function Function Execution Promise Advantage 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Basarat Ali Syed 2014

Authors and Affiliations

  • Basarat Ali Syed
    • 1
  1. 1.OrmondAustralia

Personalised recommendations