想知道MVC [英] Wondering about MVC

查看:99
本文介绍了想知道MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,


我有点想知道这里有多少人实际使用过或正在使用模型 - 视图 - 控制器模型。对于那些想知道MVC是什么的人来说真的很有用吗?


http://en.wikipedia.org/wiki/Model-view-controller

BSCode266

解决方案

是的很多人在这里使用/曾经使用过MVC


所有标准框架都基于这个模型。

但是你问为什么?

你有更好的设计来编写代码吗?

请告诉我们......


嘿所有,


我有点想知道这里有多少人实际使用过或正在使用模型 - 视图 - 控制器模型。对于那些想知道MVC是什么的人来说真的很有用吗?


http://en.wikipedia.org/wiki/Model-view-controller

BSCode266



是的很多人在这里使用/曾经使用过MVC


所有的标准框架都是基于这个模型。

但你为什么要问?

你有更好的设计来编写代码吗?

请告诉我们。 ..



好​​吧,他们试图在学校教我,但有些老师没有出现4个班级中的2个,所以我开始怀疑是否值得学习。过了一会儿,我一直试图理解它,但没有人正确地教它,有点难以找到。现在我正在mvc做一个微波炉的旧任务,或者至少我认为我做了。所以我想我会问。


你对所有标准框架的意思是什么?并且MVC模型是最好的方式吗?


BSCode266


我个人从不允许我的视图直接与模型对话这会将三角形图案变为简单的双向管道:


查看< ------->控制器< ------->模型


...并将Controller类变成一个简单的更多Mediator,如模式

,它使View尽可能保持愚蠢(这是AGT( A Good Thing(tm))。


亲切的问候,


Jos


Hey all,

I was kinda wondering about how many people here have actually used or are using the Model-View-Controller-model. Is it really usefull?

for those who wonder what MVC is: http://en.wikipedia.org/wiki/Model-view-controller

BSCode266

解决方案

yes many here are using/had used MVC

all the standard frameworks are based on this model.
but why are u asking?
do you have a better design to write codes?
please let us know...

Hey all,

I was kinda wondering about how many people here have actually used or are using the Model-View-Controller-model. Is it really usefull?

for those who wonder what MVC is: http://en.wikipedia.org/wiki/Model-view-controller

BSCode266


yes many here are using/had used MVC

all the standard frameworks are based on this model.
but why are u asking?
do you have a better design to write codes?
please let us know...

Well they tried to teach it to me in school, but some the teacher didnt show up 2 out of 4 classes so i started wondering is it worth learning. After a while i have been trying to understand it but without someone properly teaching it to ya its kinda hard to find out. Right now i am making an old assignment of a microwave in mvc or at least i think i do. So i thought i''d ask.

What do you mean with all the standard frameworks? And would the MVC-model be the best way to do it?

BSCode266


Personally I never allow my Views to talk with the Model directly.This changes
the triangle shaped pattern to a simple bidirectional pipeline:

View <-------> Controller <-------> Model

... and turns the Controller classes into a simple more Mediator like pattern
and it keeps the View as stupid as possible (which is AGT (A Good Thing (tm)).

kind regards,

Jos


这篇关于想知道MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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