What is the difference between framework and library


1st May 2021, 9:58 AM
Abubakar Isa Sharif
Abubakar Isa Sharif - avatar
3 Answers
1st May 2021, 10:15 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
1st May 2021, 10:17 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
LIBRARY :- It is just a collection of routines (functional programming) or class definitions(object oriented programming).The reason behind is simply code reuse, i.e. get the code that has already been written by other developers. The classes or routines normally define specific operations in a domain specific area. For example, there are some libraries of mathematics which can let developer just call the function without redo the implementation of how an algorithm works. FRAMEWORK :- In framework, all the control flow is already there, and there are a bunch of predefined white spots(kinda abstract design) that we should fill out with our code. It defines a skeleton where the application defines its own features to fill out the skeleton. In this way, your code will be called by the framework when appropriately. Here, the concentration shld only be on implementing domain specific functions. This is known as Inversion of Control(IoC).
1st May 2021, 10:27 AM
sarada lakshmi
sarada lakshmi - avatar