问题描述
我的问题很简单,我想用一个简单的例子,一个明确的答案。
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(应用编程接口) - 允许您使用code在一个已经功能应用在单机FASION。
API (Application Programming Interface) - Allows you to use code in an already functional application in a stand-alone fasion.
框架 - code,让你的基类和接口特定的任务/应用类型,通常是在一个设计模式的形式。 (尽管并不总是)
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)
图书馆 - 相关code,可以进出随意交换来实现在一流水平的任务
Library - Related code that can be swapped in and out at will to accomplish tasks at a class level
工具包 - 相关code,可用于在组件层面来完成任务。
Toolkit - Related code that can be used to accomplish tasks at a component level.
这篇关于API和工具包VS框架VS库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!