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

问题描述

有人能解释一下我的软件框架是什么吗?为什么我们需要一个框架?什么是框架使编程变得更容易?

解决方案

我很迟才回答它。但是,我想分享一个我今天只想到的例子。如果我告诉你要裁剪一张尺寸为5米乘5米的纸,那么你肯定会这么做的。但是,假设我要求您裁切1000张尺寸相同的纸张。在这种情况下,您不会进行1000次测量;显然,你会制造一个5米×5米的框架,然后在它的帮助下,你可以在较短的时间内裁剪1000张纸。所以,你所做的是制定一个框架来完成特定类型的任务。您不必一次又一次地为相同类型的应用程序执行相同类型的任务,而是创建一个框架,将所有这些工具组合在一个漂亮的数据包中,从而为您的应用程序以及更重要的应用程序提供抽象。


Can someone please explain me what a software framework is? Why do we need a framework? What does a framework do to make programming easier?

解决方案

I'm very late to answer it. But, I would like to share one example, which I only thought of today. If I told you to cut a piece of paper with dimensions 5m by 5m, then surely you would do that. But suppose I ask you to cut 1000 pieces of paper of the same dimensions. In this case, you won't do the measuring 1000 times; obviously, you would make a frame of 5m by 5m, and then with the help of it you would be able to cut 1000 pieces of paper in less time. So, what you did was make a framework which would do a specific type of task. Instead of performing the same type of task again and again for the same type of applications, you create a framework having all those facilities together in one nice packet, hence providing the abstraction for your application and more importantly many applications.

这篇关于什么是软件框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 23:58
查看更多