What is the difference between a framework and a library?

后端 未结 19 1954
南旧
南旧 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:16

    Your interpretation sounds pretty good to me... A library could be anything that's compiled and self-contained for re-use in other code, there's literally no restriction on its content.

    A framework on the other hand is expected to have a range of facilities for use in some specific arena of application development, just like your example, MVC.

提交回复
热议问题