Class 03 Reading - edpuzino/seattle-javascript-401n7 GitHub Wiki
Class 03 Asynchronous Callbacks:
This is my first Wiki link. It is for the reading of JS 401 class 03. The topics covered in this class readings were, Async, callbacks, promises and event loops, so Ed if you are reading this when the class is over and you want to brush up on any of these topics, class 03 readings is were you’ll want to look.
The video on event loop was very confusing when I watched it so if you still don’t quite understand it try the video again and see if it makes any more cense after going through the class. what the heck is the event loop anyway.
The reading for today was extensive as usual, so if you want to go back and review any of it later the reading list for this assignment is this:
fs module docs
understanding error first callbacks
eloquent javascript - Async (Chapter 11)
ydkjs - Async
ydkjs - Callbacks
ydkjs - Promises
mdn - async/await
The top level of this reading is the understanding of the difference between asynchronous and synchronous parts of your programming. If you are aware of which parts of your programming are synchronous you can execute them at a time when there will naturally be a delay with the user. Say if you send the user a message and you know it will take them some time to read it and respond then that would be a great time to be running something synchronously, which would stop the program while waiting for a response. I considered this in my first class project when I was programming. I would have the computer do longer functions after I sent the user a question instead of before this way it happened without the viewer seeing any delay.