DEV Community

Discussion on: What's the difference between a library and a framework?

Collapse
 
imben1109 profile image
Ben

Yes.

In my opinion, framework is a library which guide you to complete a specified task.

For example, spring framework provides specific syntax such as annotation, structure or syntax for developers to follow and then developers can complete the tasks.

Collapse
 
tbroyer profile image
Thomas Broyer

Spring is more than a framework, it's a whole ecosystem: you cannot pick up something from Spring that looks like a library as it comes with the whole Spring ecosystem dependencies. It's not just a set of libraries that "work well together" (as others have written), they depend on each other (and why I avoid anything Spring, just like I avoid frameworks in general)

Collapse
 
imben1109 profile image
Ben

The situation of spring is very similar to angular, react, vue.

I would say when many people use a framework, the framework would be a ecosystem.