DEV Community

Panda Quests
Panda Quests

Posted on

What are the differences between a library or a framework?

Top comments (1)

Collapse
 
elmuerte profile image
Michiel Hendriks

It mostly has to do with the call direction.

A framework calls into your program, where with a library your program calls out to it. Thereby a framework defines some behavior or structural requirements on your program.

How much requirements and restrictions a framework imposes on your program is generally called opinion. An opinionated framework imposes a lot of requirements and restrictions. Note that this does not imply (in)flexibility of a framework.