软件/编程框架的实际定义是什么?
The article in Wikipedia seems too verbose.
I understand framework as a well designed set of libraries and tools. The Qt framework provides a set of libraries/tools for cross platform GUIs. The cocoa framework does the same thing for Mac.
What's the practical definition of software framework?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您自己定义整体程序结构,但对某些操作使用预构建的构建块和原语,那么您正在使用库。
另一方面,框架为您定义了整体程序结构,使您可以在预定义的扩展点添加和扩展功能。
If you define the overall program structure yourself, but use prebuilt building blocks and primitives for some operations you are using a library.
A framework on the other hand defines the overall program structure for you, letting you add and extend functionality at predefined extension points.
看起来答案就在你的问题中。
它是一组集成的库,抽象了底层语言或体系结构的某些部分,并提供了在其设计的特定领域中常用的工具(例如,Web 框架将具有处理 HTML 的工具)。
Looks like the answer's in your question.
It's an integrated set of libraries that abstracts some parts of the underlying language or architecture and provides tools that are commonly used in the specific area for which it was designed (e.g. a web framework will have tools to deal with HTML).
该定义的第一部分是我所能想象的最简洁的软件框架的定义。来自维基百科(以保存其他人浏览它):
The first section of that definition is about as terse as I can imagine the definition for something as vague and nebulous as a software framework could be. From Wikipedia (to save others browsing for it) :