B
B
bukt2012-01-03 14:18:19
IT terminology
bukt, 2012-01-03 14:18:19

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

8 answer(s)
V
Vladimir Chernyshev, 2012-01-03
@VolCh

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.

K
kmike, 2012-01-03
@kmike

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)

N
nocach, 2012-01-03
@nocach

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.

E
Eugene, 2012-01-03
@r4tz52

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.

O
OpenMinded, 2012-01-03
@OpenMinded

A framework is a library that creates some restrictions (architectural) for a programmer, directs the flight of his thoughts along a certain path.

V
Vyacheslav, 2012-01-03
@Armann

The framework imposes a certain architecture on the programmer, the library does not

Y
Yegoroot, 2016-09-28
@Yegoroot

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)

E
Evgeny Svirsky, 2015-12-30
@e_svirsky

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 question

Ask a Question

731 491 924 answers to any question