Answer the question
In order to leave comments, you need to log in
What is the boundary between a library and a framework?
I mean OOP..............
Answer the question
In order to leave comments, you need to log in
Directing calls first. The framework calls your code, it's like inside it. And your code calls the library, it is inside it. And the requirements for a certain structuring and the restrictions mentioned above are just consequences so that the framework knows what and where to call and knows what to do with the returned values.
The question is theoretical, it depends on who understands what a framework and a library mean.
You can distinguish this way: the framework calls your code, the library is used by your code. The framework has “hooks” where you can enter your own logic, the library is a set of tools.
OOP has nothing to do with it)
For me, a framework is a kind of framework for an application. More invasive than a simple library. Take, for example, the Spring MVC framework. Yes, this is a set of libraries, compiled code. But in order to take advantage of the benefits of spring, your code will need to be structured in a certain way (in order for the Controller to work, you must dress it with the necessary annotations, return the data specified by the framework from methods, etc.)
A library, on the other hand, is just a set of application utilities that solve one specific task. For example, the Log4j library. Carries the only functionality in the form of logging. Your code remains the same as your code. You don't have to build your classes in a particular way. You don't need to return special values. You just need to add the logger field, create a logger and log. The functionality of the original code remains unchanged. Only the logging function has been added.
From the wiki :
Unlike libraries that combine a set of subroutines of similar functionality, the framework contains a large number of libraries of different purposes.
A framework is a library that creates some restrictions (architectural) for a programmer, directs the flight of his thoughts along a certain path.
The framework imposes a certain architecture on the programmer, the library does not
Freyvork - a shelf in which you can add tools (libraries). And some cannot be folded due to certain properties of both shelves (framework) and tools (libraries)
stackoverflow.com/questions/148747/what-is-the-dif...
stackoverflow.com/questions/148747/what-is-the-dif...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question