
In JavaScript, asynchronous is the relation between now and later. Fortunately, we can "make it” non-blocking by introducing the concepts of asynchronous and event loop. Taken into consideration that our goal is to build applications that transfer data in real-time, the fact that JavaScript is a blocking language can surprise us. Otherwise, non-blocking are instructions that can be done without blocking any other instruction. Having said that, the concept of blocking refers to all those instructions that block the execution of others until that instruction finishes. Non-blocking is one of those concepts which are easier to understand if we understand first their opposite. It is a very important piece of Node.js because it will store the execution order of the program and we should take special consideration with it because as there is only one if it is busy our application will be busy. The call stack is a data structure that follows the LIFO approach (“Last In, First Out”), so basically what it does is push and pop different instructions read from the code. If we want things in real-time, doing only one thing at a time does not sound like a good approach, right? Let's find out! What is the call stack? One thread means one call stack, one call stack means one thing at a time. But, what does it really mean in this context? Let’s discover it. Most of the time we used to hear the facts that Node is non-blocking, single-threaded, asynchronous, concurrent. Node.js is a JavaScript runtime environment designed to build scalable network applications. Then, as a conclusion, you can learn how these pieces work together and highlight important considerations of their use.

The following article takes each tool, identifies the main characteristics, and explains how each concept works.

Why are these tools useful? What characteristics do they have? In which scenario is it recommended to be used? How do they help us in the process of building real-time applications? A lot of references recommend Node.js and WebSocket for that, and many questions arose. In order to make therapy fun, the application needed to transfer data in real-time to give the user a comfortable interaction with the game.
#EJS JAVASCRIPT DOES NOT EQUAL SYNTAX SOFTWARE#
Subsequently, I decided to make the recovery fun and interactive.īased on that, I took those exercises and mixed them with hardware and software to create a rehabilitation game.

In December 2019, I sadly dislocated my shoulder.ĭuring the recovery process, as part of the therapy, my doctor recommended some exercises, but those were extremely boring.
