DEV Community

Discussion on: What is the difference between a Library vs A Framework?

Collapse
 
thomasjunkos profile image
Thomas Junkツ • Edited

I would say they have in common to deal with one specific topic.
Depending on the level of abstraction you either call it framework or library.

Say you have code dealing with web requests, you are looking at a request library.
Say you have code dealing with authorization, you are looking at an auth library.
Say you have code dealing with database related things, you are looking at a db library.

If you have code dealing with building web applications, you are looking at a web framework.
From what was said, it is easy to see that a web framework itself could consist of several libraries, e.g. request, auth and db.

OTOH, I assume those terms emerged somewhere in time and there was no clear definition in the first place.