Framework Vs. API

前端 未结 12 1132
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 08:04

Now, this may be a silly question but sometimes the terms Framework and API are used interchangeably. The way I see it is that a Framework is a bigger more generic thing, co

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-04 08:32

    A framework implements a very important option called IoC (Inversion of Control) which means in a nutshell that your code has, no more, things in hand.

    While in an API your code calls other codes (libraries), when you use a specific framework, it's the framework who is in control of the application flows.

提交回复
热议问题