Frameworks Vs Libraries

Syed Mudassir Iftikhar
2 min readJan 5, 2021

As a programmer/developer we engaged/encounter on daily basis with both of these libraries or frameworks so we have to know about the difference between them in terms of technical or formal.

Framework Vs Library

Let’s talk in something general about libraries and frameworks. Both have the the piece of code to solve problems but it depends on problem which is helpful to solve it framework or library. Library is a piece of reusable code that can be used in any code to solve some sort of problem which you don’t want to code just use someone else code to overcome /solve it and there is no restrictions or limitations to use it. While if we talk about framework there is some rule and regulations or restrictions too. Framework is having some predefined specific domain or it’s a skeleton you just have to fill the color of your choice with some specifications/limitations. Usually frameworks is more complex than libraries.

Make the difference more clear with this example:

Library is like you have a car and you want some modification so you are to select color, seats, shape etc... And you don’t have to modify it from scratch.

On the other hand Framework is like to build a car with some set of rules/choices and predefined blueprints when it comes to modifying it. There is some sort of boundaries you have to follow.

Inversion of Control

Using Library you have a freedom where or when to call it in your code. With the Framework we have an Inversion of control and the Framework calls on your code to execute the unique features of your code.

Have a comparison of Library and Framework… React VS Angular will make difference more clear.

--

--