DEV Community

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

Collapse
 
belinde profile image
Franco Traversaro

All the responses are good in their own ways, so I'll go for brevity.

A library is a component doing a specific task, and you can use it wherever you want.

A framework is a bunch of libraries PLUS an opinionated way to use them, to reduce the boilerplate you have to write.

Typically if you are writing a project from scratch and you install just a library, your software does nothing. But if you install a framework you'll have already something working, like a website with a homepage and a login system.