“应用框架"是什么意思? [英] What is meant by "application framework"?

查看:110
本文介绍了“应用框架"是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复项:
什么是框架?它有什么作用?为什么我们需要一个框架
类库与框架

Possible Duplicates:
What is a framework? What does it do? Why do we need a framework
What is the difference between a class library and a framework

尽管我提到了各种来源,但我仍然无法理解正确的定义. 应用程序框架"是什么意思?

Although I referred to various sources, I still can't understand the proper definition. What is meant by "application framework"?

推荐答案

一个简单的答案:

应用程序框架使编写应用程序更加容易.

创建应用程序很困难.应用程序必须提供输入和输出,这些输入和输出是通过操作系统语义获得的.现代应用程序通常基于GUI,并且GUI应用程序比非GUI应用程序复杂几个数量级.

Creating applications is hard. Applications have to provide input and output which they get through operating system semantics. Modern applications are usually GUI based and a GUI app is orders of magnitude more complex than a non-GUI app.

就这么简单.该框架承担了与操作系统接口的所有复杂问题,并为您简化了这些工作.它为您处理所有细节.显然,某些框架要比其他框架做得更好.

It's that simple. The framework takes all the complexities of interfacing with the operating system and simplifies them for you. It handles all the nitty-gritty details for you. Obviously certain frameworks do a better job at it than others.

使用几乎没有被讨论过的应用程序框架有一个缺点(大概是因为我们都对不需要做的工作量感到微笑).为了提供操作环境的简化视图,框架必须将您包装成某种样式".如果您的应用程序与通常的应用程序形式有很大不同,那么您可能最终会在框架中感到沮丧,因为这会使您难以完成自己想做的事情.部分原因是您现在必须执行框架隐藏的所有工作,部分原因是该框架可能是封闭系统.

There is one drawback to using an application framework that rarely seems to be discussed (presumably because we are all smiling about the amount of work we didn't have to do). In order to provide a simplified view of the operating environment, a framework has to box you into a certain 'style'. If your app is sufficiently different from the usual form of app, you are likely to end up frustrated in the framework as it will make doing what you want very difficult. This is partly because you now have to do all the things that the framework was hiding from you and partly because the framework is probably a closed system.

这篇关于“应用框架"是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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