I was wondering if we needed to understand all the code used in the examples or just skim through it to kinda see what’s happening
-
What is the difference between synchronous and asynchronous functions?
Synchronous functions take immediate attention and must finish before working on something else. Asynchronous functions can be put aside until it becomes efficient for it to be ran or the resources exist to run it are available -
What is callback hell?
It’s when complex operations rely on a vast depth of nested functions making debugging impossible -
Which technique can help us solve callback hell?
jQuery has a promise library that chains callbacks to deal with errors
Node.js can extend runtime in order to abstract away asychonicity
Meteor uses Fibers package which lets you write code in a synchronous style