Marshall.Lakin74 answered on October 8th 19 at 03:59
The calls first. The framework calls your code, it is as if inside it. And the library invokes your code inside it. And the requirements of a particular structure and constraints mentioned above, it is only the investigation that the framework knew what and where to call and knew what to do with the return values.
lupe18 answered on October 8th 19 at 04:01
So for me a framework is a skeleton application. More invasive than a simple library. Take, for example, Spring MVC framework. Yes, it is a set of libraries, compiled code. But to take advantage of the benefits of spring, your code will need to be structured in a certain way (to make the Controller you have to put it in annotations of the methods specified by the framework to return data, etc.)
Library, it's just a set of application utilities deal with one specific task. For example, the Log4j library. Carries the only functionality in the form of logging. Your code is still your code. You don't need to build your classes in a certain way. You don't need to return special values. You just need to add a field logger to create a logger and logit. The functionality of the original code remained unchanged. Added only the function of logging.
Megane_Wal answered on October 8th 19 at 04:03
From the wiki:
Unlike libraries, which combine a set of routines close functionality, the framework contains a large number of different purpose of libraries.
rhea_Auer answered on October 8th 19 at 04:05
This is a theoretical issue, it depends on who is under framework and library understands.
So to differentiate: the framework calls your code, a library used by your code. The framework — "hooks" where you can write your logic library — set instrumenov.
The PLO has nothing to do with it)
fredrick.Schowalter answered on October 8th 19 at 04:07
A framework is a library that creates certain restrictions (architectural) for the programmer, directs the flight of his thought on a particular path.
durward.Wolf25 answered on October 8th 19 at 04:09
The framework imposes on the programmer a particular architecture, the library does not
Jed_Hick answered on October 8th 19 at 04:11
Framework - shelf in which you can put tools (libraries). And some can't be put in because of certain properties as shelves (freeware) and tools (libraries)