How to distinguish structure from function library?

Is there a definition of a “framework” that can be used to isolate a structure from a set of utility functions and / or libraries?

Where is one end and the other starting or is the line between them blurred?

+5
source share
3 answers

A library is what your program uses, your program calls the library code. Structure is what you write code on, and the framework invokes your code. For example, in the MVC web application, you write controllers for this, these controllers are created and called by the framework, the structure is responsible for this.

Spring is an example of a framework that also includes libraries (e.g. spring-jdbc, for example).

+4

, IMO, . , .Net (, , , Nathan Hughes), , , .

, -, . , , , , .

+1

Frames are usually more universal than libraries. You can write a utility library for your application. An application can use a (general) structure that can be used for a completely different purpose.

0
source

All Articles