Why use Framework

Course- Javascript >

If you’ve already written a number of applications, chances are you’ve had to solve some of the same coding problems over and over again. One of the techniques you can use to cut down on such re-invention of the wheel is to use a software framework.

In this section you’ll learn about a popular style of network called an MVC (Model-View- Controller) framework, and see how to implement such a framework for single-page JavaScript applications by using Google’s AngularJS.


The purpose of a framework is to improve the efficiency with which you can write software applications, at the same time adding consistency, quality, reliability, and robustness to your application.

Choosing a well-written and appropriate framework can leave you more time to focus on the unique requirements of your application rather than spending lots of valuable time on the application’s infrastructure.

Why Use a Framework?

Frameworks help you to reuse code that has been previously built and tested, improving your application’s reliability and reducing the coding and testing work required in its creation.

A framework can also encourage better programming practices, due to the structure it imposes on your application.

Finally, a framework usually provides you with the means to extend its functionality, making it better suited to your application’s needs.

Frameworks Are Not the Same as Libraries

Many people confuse the term software framework with a software library, like the ones discussed of this tutorial.

However, there is a fundamental difference between frameworks and libraries; when you use a library, the objects and methods available within that library already exist, waiting to be invoked by your custom application. You need to know which objects and methods to employ in your code in order to create your application.

When you use a framework, it’s you that designs and codes the objects and methods used by your application. The framework provides a consistent structure in which you can do this.