40. How we solve it
• Refactor – name functions outside of the
scope
• Keep functions shallow – usually no more than
2 levels deep
• Use the module pattern
41. "Write small modules that each do
one thing, and assemble them into
other modules that do a bigger
thing. You can't get into callback
hell if you don't go there.”
-Isaac Schlueter