Why JavaScript is in demand?

In all my trainings, very first question I face is, Why all of the sudden angular is in demand? Why JavaScript frameworks become so much important all of the sudden?

Let me put some light onto it.

Today, we are moving towards cloud, where we will be charged based on how much we utilize server resources. More we utilized more will be the cost.

This is what we do today
We create server applications using a server technology and make it does following things.

  1. Handle requests
  2. Execute some logic based on request and generate final data to be displayed
  3. Generate HTML from that data
  4. Return that HTML

But there is another way to do same, JavaScript.
We create server applications using a server technology and make it does following things.

  1. Handle requests
  2. Execute some logic based on request and generate final data to be displayed
  3. Data is sent as response.

At client side using JavaScript HTML will be generated dynamically from that data.

It will add two advantages :-

  1. It reduces the overall usage of server resources ultimately reducing the overall software COST.
  2. Bandwidth required for overall transmission of only data is too less compared to complete HTML, as complete HTML will be bigger than the data in size.

Now a days hardware is much cheaper and every client machine is good capable for executing JavaScript.

These performance and cost benefit made JavaScript a big boom market. All major companies are making their move towards JavaScript.

Next time I will talk about Advantage of Angular over other JavaScript frameworks and libraries.

Comments

comments

Leave a Reply