什么是MVC模型

一下是来自维基百科的一段解释:(From Wikipedia, the free encyclopedia)

  

 Model–view–controller (MVC) is a software architecture pattern which separates the representation of information from the user's interaction with it. The model consists of application data, business rules, logic, and functions. A view can be any output representation of data, such as a chart or a diagram. Multiple views of the same data are possible, such as a bar chart for management and a tabular view for accountants. The controller mediates input, converting it to commands for the model or view. The central ideas behind MVC are code reusability and separation of concerns.

 本人的翻译是:

    

  MVC是一个用来分离信息描述与用户和信息交互的软件架构模式。这里模型是有应用程序的数据,业务规则,逻辑和功能组成的。单视图是输出诸如:图表,图的数据描述;多视图也是可能的,比如:条形图用于管理,列成表格的视图为了会计。控制层调剂输入,转换这些信息去协调命令模型或者视图。MVC主要的观点就是为了代码的复用和关注点的分离。

 

看后的感想是,新公司是一家外企,背景是英语,现在不得不看一下纯英语的资料了。不过,现在真心感觉老外写的东东就是通熟易懂,可是为什么翻译成中文是那么的抽象呀。这让我挺郁闷的,有人说“关于开发类的书籍,国内的作者都没有做过开发”。现在我是信这句话了

猜你喜欢

转载自weizhilizhiwei.iteye.com/blog/1893886