Sunday 15 July 2018

What is angular?


Angular is a JavaScript framework for building reactive single page application (SPA) using HTML, CSS and JavaScript/typescript. Well, JavaScript is used only in angular 1.0 which is known as angular.js, for the higher versions Typescript is used.

Before you start learning angular, You should know what single page application/SPAs do and what that means.


Single page applications are the web application that will load a single page and dynamically update all the other pages instead of loading the entire page from the server. A dynamic communication happens behind the scenes. That means no page reloading, That's cool and it's very fast. that why SPAs are in demand now. Most of the application you see today like Gmail, Facebook, Github etc are SPAs.

Monday 9 July 2018

Angular Version History




let's see the difference!.......

Angular is mainly divided into two.
1) angular.js
2)angular



Angular.js
Angular(2,4+)
Based on model-view-controller (MVC) design
Based on Component-based MVC  design
Uses JavaScript
Uses Typescript
Not built with mobile support
Feature mobile support
Controller-based UI
Component-based UI
Not SEO Friendly
SEO Friendly


Angular 4 provides more advanced features than angular 2, that's why angular 3 is missing. It took some time to develop the angular 4 by adding more advanced features like better support for newer version of typescript, Introduction of view engine. Angular 4 consume less space and run faster, thus increasing the speed of your application.when it comes to angular 4+, They made only fewer changes.

Next

Sunday 8 July 2018

Node History

  Node is a programming language or a framework. What is node exactly?

Node is a runtime environment that uses chrome V8 JS engine for executing javascript code outside the browser.

Story of Node

All web browser is having a javascript engine that will compile javascript code into Machine code and the only possible way to execute javascript was inside a browser, So most of the functionalities like reading a file, Writing to a file was not possible
So the creator of Node.js (Ryan Dahl) create a runtime environment that will help us to run JS code outside the browser and he uses Chrome V8 engine.

Why V8 engine?

V8 engine is the fastest javascript engine for executing javascript code, So Ryan Dahl took V8 engine and embed it with C++ program and named it as Node.js.

Image result for v8 javascript engine

How Node Works?

Node provides asynchronous communication, A single thread is used to accept the request. So it will provide non-blocking communication between clients

Asynchronous communication uses a single thread to handle all request. It won't wait for the current process to complete, until the completion of current process it will handle another request.Where's in synchronous communication individual thread is allocated to handle request.Each request will be handled by separate thread.