Skip to main content

1. Introduction to Nodejs - Beginner Level

What is Nodejs 

Nodejs is an incredible platform for building high performance web applications. You write your code in javascript perhaps the world's most popular programming language.

Nodejs it was created by Ryan Dahl back in 2009. Its early development and maintenance was sponsored by Joyent.

IOjs really helped accelerate the development of this platform and to an extent that in early 2015 the Nodejs foundation was announced with key members such as IBM, Intel, Microsoft and more.

Soon after in mid-2015 both the IOjs and Nodejs communities wanted to join hands and merge the projects to work under the Nodejs Foundation. The first official release of not just after its merger with IOjs has been version 4.x.

Unlike other programming languages such as PHP Nodejs is a platform. This means that you are given the ability to write code that gives you full control over your app logic and the environment within which it has to operate. You effectively write your apps from the server stack up. This gives you the incredible ability to create really cool stuff such as collaborative multi user apps like

  • Chat servers, collaborative productivity tools   
  • Realtime games
  • data streaming servers
  • API is for mobile apps
  • Softwares that needs to serve very large number of concurrent users  and IO requests

So you get a very high degree of scalability coupled with the goodness of javascript

Under the hood Nodejs implements Google's incredible javascript engine known as chromeV8.

So what exactly is a javascript engine?

A javascript engine is responsible for compiling and executing javascript code and managing resources and memory allocation written in C++ grome V8 is known for its amazing performance. In fact even if you have never used nor just you've still been using and experiencing V8 and your chrome browser. V8 it can be made to run as a standalone program or it can be embedded into any C++ program thus enabling a javascript based scripting interface. All the while delivering incredible performance and flexibility.

This also allows you to expand and introduce your own flavor of javascript as needed in a specific scenario. since V8 is a virtual machine which means that it abstracts the underlying hardware from the actual javascript code by simulating a universal environment for the execution environment.

You can use V8 consequently on Windows Mac and Linux almost seamlessly. This is obviously great since it enables developers to deploy their apps watchfully into any kind of an execution environment without worrying too much about the underlying hardware This also means it is great for enterprise grade C++ apps where the scripting process of Javascript can make a difference coupled with the performance benefits of a C++ program. Now as far as Nor just goes vi it is implemented along with an abstraction layer called labor U.V. which enables not just to perform seamless input and output operations across a gamut of operating systems in a nonblocking way along with labor V Nord comes with a built in core library that provides a host of useful methods that developers can use to write programs such as web servers and networked apps.

Comments