Callback Hell

by Andrew

Callback Hell. Easily one of the most confusing aspects of doing anything asynchronously in Javascript. Highlights:

  • Name your functions
  • Keep code shallow (each function should only do one thing)
  • Modularize – featuring a quick and easy intro to CommonJS!
Advertisements