Asynchronous Programming [Dev Concepts #8]

Share on facebook
Share on twitter
Share on linkedin
Learn all about asynchronous programming in this dev concepts lesson!

The current lesson Svetlin Nakov will explain everything you need to understand as a developer: multithreading, background tasks, promises, Web and service workers and parallel process execution. At the end, he will do a live demo with JavaScript. 

So, what is asynchronous programming?

Asynchronous programming is an important paradigm in software engineering.

Together with concurrent execution, they allow for multiple pieces of code to run simultaneously.

This is quite natural in computer software: you can listen to music on your laptop while browsing a website and downloading files.

Asynchronous programming allows several functions or methods of your code to be executed simultaneouslyjust like you are executing several programs in the same time.

There are many concepts and technologies, which implement asynchronous code execution:

multithreading, background tasks, promises, forked processes, web workers, service workers, and others.

 

Promises are used to handle asynchronous operations in JavaScript.

A promise in JS is a special object, which holds an operation that runs asynchronously.

Promises are a very important concept in JavaScript and some other languages.

You cannot be a JavaScript developer without understanding how to use promises.

Without promises, you cannot execute asynchronous tasks like downloading a resource from the server.

 

If you are new to programming, make sure to watch our Free Full Java Basics course! It will give you the necessary foundation to build upon and become a successful software engineer!

Lesson Topics

In this video we review the following topics:
  • Overview of Asynchronous Programming
  • Live Demo – Concurrent Execution Using Web Workers
  • Promises
  • Live Demo – Fetching Resources Asynchronously

Remember that coding is a skill, which should be practiced. To learn to code, you should write code, every day, for a long time. Watching tutorials is not enough. You should code! 

We would love to hear from you, so leave a comment below saying what topics you would like to see next. 

Leave a Comment

Scroll to Top
small_c_popup.png

Sign in

Don’t have an account? Register with us to join the community.