API vs Toolkit vs Framework vs Library [英] API vs Toolkit vs Framework vs Library

查看:17
本文介绍了API vs Toolkit vs Framework vs Library的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题很简单,我想通过一个简单的例子得到一个明确的答案.

My question is very simple, and I want a clear answer with a simple example.

API、工具包、框架和库之间的主要区别是什么?

What's the main difference between API, Toolkit, Framework, and Library?

推荐答案

这一直是我的理解,你肯定会看到关于这个问题的不同意见:

This has always been my understanding, you will no doubt see differing opinions on the subject:

API(应用程序编程接口)- 允许您以独立的方式在已经运行的应用程序中使用代码.

API (Application Programming Interface) - Allows you to use code in an already functional application in a stand-alone fasion.

框架 - 为特定任务/应用程序类型提供基类和接口的代码,通常采用设计模式的形式.(虽然不总是)

Framework - Code that gives you base classes and interfaces for a certain task/application type, usually in the form of a design pattern. (Though not always)

库 - 可以随意换入和换出以完成类级别任务的相关代码

Library - Related code that can be swapped in and out at will to accomplish tasks at a class level

Toolkit - 可用于在组件级别完成任务的相关代码.

Toolkit - Related code that can be used to accomplish tasks at a component level.

这篇关于API vs Toolkit vs Framework vs Library的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆