DEV Community

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

Collapse
 
tzesien profile image
Tze-Sien

Let's take baking cake as an example.

Library
You bake your cake on your own, but you probably not going to grow the strawberry which is your ingredients, so you buy it from stores(library)
You control the whole process of baking(programming) to bake a cake(program)

Framework
In this case, you get a cake by buying it from bakery.
In this case, you can decide only few things like the color, flavour or design. The whole process will be controlled by Baker(framework)

Hope this can help you understand it better. ^^