Node JS

Node.js is based on JavaScript, a language that has brought with it a lot of changes, and the face of web development today is dramatically different. Initially,JavaScript was used as client side scripting language, But with the new languages such as node.js we can now have JavaScript at server side too.

Node.js has many advantages over other traditional languages (Java, C#, etc), as follows:

  • Provided a full system JavaScript API that was never really achieved before due to the sandboxed environment that browsers provide. node.js is built on top of Google’s V8 JavaScript engine2 (the same one used in Chrome) and Joyent’s libuv, an asynchronous I/O library that abstracts away the underlying platform.
  • With the advent of Node, JavaScript developers could access the file system, open network sockets, and spawn child processes.
  • It provide us with numbers of modules (NPM - one of the largest repository) to enhance the application features.
  • It is no-blocking, single threaded, event driven language that makes it more scalable.

For developing basic web application, developer must have understanding of HTML, CSS and JavaScript. However, to develop data intensive or complex Applications( that require complex logic and data operations), we need a server side language (PHP, JAVA, etc) and SQL language. These five language understanding is necessary for developing any such applications. Moreover, syntax for these languages are different and may confuse the developer at a certain point. In that case, node.js can successfully replaces the server side language with more familiar coding approach (JavaScript).