What is the difference between a framework and a library?

后端 未结 19 1950
南旧
南旧 2020-11-22 11:46

What is the difference between a framework and a library?

I always thought of a library as a set of objects and

19条回答
  •  花落未央
    2020-11-22 12:08

    From Web developer perspective:

    1. Library can be easily replaceable by another library. But framework cannot.

      If you don't like jquery date picker library, you can replace with other date picker such as bootstrap date picker or pickadate.

      If you don't like AngularJS on which you built your product, you cannot just replace with any other frameworks. You have to rewrite your entire code base.

    2. Mostly library takes very less learning curve compared to Frameworks. Eg: underscore.js is a library, Ember.js is a framework.

提交回复
热议问题