Asynchronous JavaScript
Published by Pearson
Learn to write efficient and elegant async code in JavaScript with callbacks, promises and async/await
JavaScript has evolved exponentially over the last few years and doesn’t seem to stop. It can be hard to keep up. Even though you might be using the latest and greatest features, you might not have taken the time to really understand how it all works. In this training we will slow down and go behind the scenes to understand some of the most important aspects of Modern JavaScript.
Even though JavaScript can be a frustrating language at first, it becomes really enjoyable if you take the time to raise the level of your understanding. In this training, we’ll focus on many such concepts -- ES6, Transpiling with Babel, Bundling with Webpack and Async JS )including Promises, Async/Await) to name a few.
What you’ll learn and how you can apply it
- Why ES6 is just not syntactic sugar and what it does behind the scenes.
- Using Import/Export statements and how they can help you create a module codebase.
- JavaScript event loop and how it enables asynchronous execution in a single threaded language.
- Several approaches to writing asynchronous JavaScript such as Callbacks, Promises and Async/Await.
- Practical examples and techniques that leverage the async options in JavaScript.
- Building your own JS library and publishing to public npm
This live event is for you because...
- You are an intermediate JavaScript/Front-End developer.
- You feel only if someone could explain Promises and Async/Await in a practical way, your life as a JavaScript developer would be a lot better.
- You want to learn the techniques to efficiently utilize APIs and handle events in your codebase.
- You know JavaScript has completely changed but you haven’t caught up and are just trying to get by.
- You use all these libraries available on npm and wonder how you can create one yourself.
Prerequisites
- Basic understanding of JavaScript and experience using it for developing web applications
Course Set-up
- If you would like to follow along in real-time, have your favorite IDE, browser, and terminal running.
- Alternatively, you can take notes during the session and try the examples at a later time (a link to the code and slides will be posted)
Recommended Preparation
- Video: Learn Javascript by Shaun Wassell - https://learning.oreilly.com/videos/learn-javascript/9780136752899
- Live Training: Advanced Javascript by Sahil Khosla - https://learning.oreilly.com/live-training/courses/advanced-javascript/0636920414711/
Recommended Follow-up
- Book: Modern JavaScript for the Impatient by Cay S. Horstmann - https://learning.oreilly.com/library/view/modern-javascript-for/9780136502166/
Schedule
The time frames are only estimates and may vary according to how the class is progressing.
Segment 1: Overview Length (5 min)
- The instructor will give an overview of the training and topics covered.
Segment 2: Transpiling & Bundling Length (30 min)
- Introduction to Babel & Webpack
- Transpiling your code with Babel
- Bundling your code with Webpack
Segment 3: Import/Export in JS Length (30 min)
- Ways to modularize your JS code
- Different ways of using Imports & Exports
Break: 10 min
Segment 4: Async Concepts Length (60 min)
- JavaScript Event Loop
- Callbacks - how they work and when they start to get messy
- Promises to the rescue - reject/resolve, chaining, promise.all and error handling
- Async/Await - not just syntactic sugar
- How to pick one between callbacks, promises and async/await
- Functions
Break: 10 min
Segment 5: Async In Practice Length (30 min)
- Building a JS library
- Structuring the code
- Applying the async concepts
- Prepare to ship
- Publish to public npm
Segment 6: Q & A Length (15 min)
Your Instructor
Sahil Khosla
Sahil is a Software Engineer with 10+ years of experience in developing user facing apps and websites. He is currently a Senior Software Engineer at Lightyear Health and has previously worked at Expedia where he was part of the group responsible for revamping the mobile web experience. A multipotentialite at heart, Sahil loves to learn and equally loves to share that knowledge with others. He takes pride in breaking down complicated concepts and making them easy to understand with analogies and diagrams.