最佳建筑模式? MVP,MVC,MVVM还是其他?[已解决] [英] Best Architectural Pattern? MVP, MVC, MVVM or anything else?[Solved]

查看:54
本文介绍了最佳建筑模式? MVP,MVC,MVVM还是其他?[已解决]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想开始一个具有最佳架构模式的项目,该模式包含很多优点,因此最好的是MVP,MVC,MVVM或其他任何东西.以前,由于我的旧雇主仍在使用过时的概念,因此我在项目中没有使用任何这些模式.因此,请完美地描述我,您也可以提供链接.

我想要一个Silverlight/Adob​​e Flex&另一个与Normal Web.

注意:我尝试了google&我得到了一些描述MVVM最好的链接,但我也想从这里获得结果,因为每天有15000-20000(avg)IT人员在浏览 Codeproject .

我希望我的第一个问题对我来说应该是最好的.

谢谢.

问候,
thatraja

Hi,
I want to start a project with best architectural pattern which contains many advantages, so which is best such as MVP, MVC, MVVM or anything else. Herebefore I didn''t used any of these pattern in my project due to my old employers who are still using outdated concepts. So please describe me perfectly as well as you can provide links too.

I want one with Silverlight/Adobe Flex & another one with Normal Web.

Note : I tried google & i got some links which describes MVVM is best, but i want results from here too because everyday 15000-20000(avg) IT people browsing Codeproject.

I hope my 1st question must be the best one to me.

Thanking you.

Regards,
thatraja

推荐答案

thatraja写道:
thatraja wrote:

在我之前由于我的旧雇主仍在使用过时的概念,因此在我的项目中没有使用任何这些模式

Herebefore I didn''t used any of these pattern in my project due to my old employers who are still using outdated concepts



具有设计模式的这种躁狂至少被轻度地延迟了.我以前使用过MVC,因为它很有意义,所以我编写了一个视频点唱机程序,该程序主要使用MVC来创建支持多个控制器的体系结构,因为点唱机具有多种自定义输入设备,每个输入设备都需要一个控制器. .没有框架,没有设计模式,没有任何架构可以适应所有规模,但任何数据库驱动的项目都应至少具有三层,除非使用了实体框架并提供了该抽象层.所有这些模式都存在的原因,在一定程度上是一种狂热,其模式是克服那些选择使用它们的团队的各种缺点的灵丹妙药,但是部分原因还在于,人们不断认识到,尽管各种模式都是经常用在软件中,给它们命名是有好处的,这些各种模式都作为解决不同问题的解决方案而存在.正如您对正在执行的项目的性质一无所知,很显然,您不了解模式如何适应事物方案,或者它们在多大程度上不能替代事物



This mania with design patterns is at least mildly retarded. I''ve used MVC before, because it made sense, I wrote a video jukebox program which used MVC mostly to create an architecture where multiple controllers were supported, because the jukeboxes had a variety of custom input devices, each of which required a controller. No framework, no design pattern, no architecture is going to fit all sizes, with the exception being that any database driven project should have at least three tiers, unless an entity framework is used, and provides that layer of abstraction. The reason all of these patterns exist is in part a mania with patterns as a silver bullet to overcome the various shortcomings of the teams that choose to use them, but it''s also in part because of a continued recognition that while various patterns are used often in software, and there''s a benefit to naming them, those various patterns all exist as solutions to different problems. As you''ve said nothing about the nature of the project you''re undertaking, it''s clear that you don''t understand how patterns fit into the scheme of things, or the degree to which they are not a substitute for a good design and good coding practices.


这取决于项目/技术的类型等.

例如,Silverlight和MVVM被认为是很好的匹配.
It would depend on the type of the project / technology etc.

for e.g Silverlight and MVVM are considered to be a good match.


MVC是最好的体系结构样式.
MVC is the best architectural pettern.


这篇关于最佳建筑模式? MVP,MVC,MVVM还是其他?[已解决]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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