MVC(模型 - 视图 - 控制器) - 可以简单的解释吗? [英] MVC (model-view-controller) - can it be explained in simple terms?

查看:81
本文介绍了MVC(模型 - 视图 - 控制器) - 可以简单的解释吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要向不太技术的经理解释MVC(模型 - 视图 - 控制器)概念,遇到麻烦。问题在于解释需要在你的奶奶会得到它的水平上 - 例如即使在 MVC Wiki页面没有工作,至少与我的评论。



有没有人可以简单的引用一个好的MVC解释?





我曾经看到一个模式解释的列表,但是我最好的记忆是MVC没有。



谢谢!

解决方案

这个 - 我的头顶,希望它适合你。



MVC可以与电视隐喻相关。您有各种渠道,由您的电缆供应商提供的不同信息(型号)。电视屏幕会向您显示这些频道(视图)。您按遥控器上的按钮会影响您看到的内容以及您看到的内容(控制器)。



我正在看电视,所以我从那里得到一些灵感!


I need to explain to a not-very-technical manager the MVC (model-view-controller) concept and ran into trouble. The problem is that the explanation needs to be on a "your grandma will get it" level - e.g. even the fairly straightforward explanation offered on MVC Wiki page didn't work, at least with my commentary.

Does anyone have a reference to a good MVC explanation in simple terms?

It would ideally be done with non-techie metaphor examples (e.g. similar to "Decorator pattern is like glasses") - one reason I failed was that all MVC examples I could come up with were development related.

I once saw a list of pattern explanations but to the best of my memory MVC was not on it.

Thanks!

解决方案

How about this - off the top of my head, hopefully it works for you.

MVC can be metaphorically related to a TV. You have various channels, with different information on them supplied by your cable provider (the model). The TV screen displays these channels to you (the view). You pressing the buttons on the remote controls affects what you see and how you see it (the controller).

I was watching TV, so I got some inspiration from there!

这篇关于MVC(模型 - 视图 - 控制器) - 可以简单的解释吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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