What is the line between library and framework?

This refers to the PLO.
October 8th 19 at 03:57
8 answers
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.
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.
That is, the boundary is the presence/absence of the need for certain structuring the code? - lupe_Shanahan commented on October 8th 19 at 04:04
You could say that. When using the framework it defines what and where to injectivity (how and where to write classes, methods). When using the library, it is completely on You where and how to use. - lupe18 commented on October 8th 19 at 04:07
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.
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)
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.
October 8th 19 at 04:09
The framework imposes on the programmer a particular architecture, the library does not
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)

Find more questions by tags ProgrammingTheory