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

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

问题描述

我需要向技术水平不高的经理解释 MVC(模型-视图-控制器)概念,但遇到了麻烦.问题是解释需要在你的祖母会得到它"的水平上 - 例如甚至 MVC Wiki 页面 没用,至少我的评论是这样.

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.

有没有人有一个简单的 MVC 解释的参考?

最好使用非技术隐喻示例(例如类似于装饰器模式就像眼镜")来完成 - 我失败的一个原因是我能想出的所有 MVC 示例都与开发相关.

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.

我曾经看过一个模式解释列表,但据我所知,MVC 并没有列在上面.

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

谢谢!

推荐答案

这个怎么样 - 在我的脑海里,希望它对你有用.

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

MVC 可以比喻为电视.您有各种频道,有线电视提供商(型号)提供了不同的频道信息.电视屏幕向您显示这些频道(视图).您按下遥控器上的按钮会影响您看到的内容以及您看到它的方式(控制器).

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天全站免登陆