Library vs Framework

0

You are a web developer or you are learning web development but you never heard of "library or framework" yet, this is quite impossible. But most of the time we tend to mix up libraries and frameworks together. While there are many similarities between libraries and frameworks, there are also some differences, which are very important for a web developer to know.

 


What is the library? A library is a bunch of code, which is done by other programmers or developers and we use this in our projects or Application. The library is reusable and the library has a specific function or purpose. 

On the other hand, many libraries are combined to create a framework, and the framework offers all the features and functionality required to build an application. 

The main difference between a library and a framework is, the library is controlled by you but you are controlled by the framework, which means, you use library functions wherever needed to build the entire project as you like. But the framework offers you the entire project/application, you just follow them and make your project/application by changing some parts. You can't do anything by yourself here. 

We can understand this with a simple example. All of us are more or less familiar with online classes, while doing online classes we don't have to follow any dress code, we don't need to go to class, and we can do classes sitting or lying down if we want. But when you are in the offline class or at school/college, you have to follow a dress code, need go to certain classes, and can't do classes sitting or lying down even if you want to. Here you can compare online classes with libraries and offline classes with frameworks.


I hope all of you understand this topic. Don't forget to share your opinion in the comments. Thank you.


Post a Comment

0Comments
Post a Comment (0)