一般而言,模式 [英] Patterns, in general

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

问题描述

我正在加快OOP模式(例如MVC)的速度,我想知道它们在现实世界中的跟踪程度是多么接近。那些使用

的人是否会尝试尽可能地跟随他们,并且仅作为

的偏差?或者你一般只跟着他们;如果需要混合匹配?


只是想知道我应该用
一般的OOP模式来完成什么。

谢谢!

解决方案

>我正在快速掌握OOP模式(例如,MVC),我是

想知道它们在现实世界中的跟踪程度。那些使用它们的人试图尽可能地跟随它们并且只在必要时偏离它们吗?或者你一般只跟着他们;
如果需要混合匹配?

只是想知道我应该用OOP
模式来完成什么。

谢谢!




现实世界中遵循的设计模式?这很有趣。


说真的。设计模式就像共享词汇。您应该尽可能地让其他开发人员理解您的代码。

当然,这一直很难做到。如果有必要,我会说只偏离
。但是,必要的是如此相对......啊。算了。现在是星期五。


我要去拖拽地带...... :) ::摇滚::


< blockquote>模式很好,因为它们可以帮助您以优雅的方式解决问题

'可扩展(如果其他开发人员使用买入到

)概念)。


我认为MVC可能对初学者来说有点先进。但是20个左右的任何一个

" basic"抽象工厂,单身人士,装饰师,立面,

Flyweight,Mediator等模式很好地学习并开始工作。你的解决真实世界的整体方法代码的商业问题。


我的2美分。


彼得

-

联合创始人,Eggheadcafe.com开发者门户网站:
http://www.eggheadcafe。 com

UnBlog:
http:// petesbloggerama .blogspot.com


" Jeff"写道:

我正在加快OOP模式(例如MVC)的速度,我想知道它们在真实中的跟踪程度有多紧密世界。那些使用
他们的人是否尽可能地密切关注他们并且仅仅因为必要而偏离?或者你一般只跟着他们;如果需要混合匹配?

只是想知道我应该用一般的OOP模式来完成什么。

谢谢!



我不知道你是否真的可以说人们是否跟随它们或通常使用

他们因为他们更多地概述了某些事情应该如何组织但是没有真正实现(特定于语言)。现在,如果

你问的是人们是否真的在现实世界中使用它们那么这是一个不同的故事。我认为越来越多的人和公司在开发新的

应用程序时会转向某种模式系统。正确完成后,模式和可重用性会很好地结合在一起

和公司应该想要的代码可以重复使用




-

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Charles Cox

VC / VB / C#开发人员

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~


" Jeff" < A@B.COM>在消息中写道

新闻:uP ************** @ TK2MSFTNGP11.phx.gbl ...

我只是在OOP模式(例如,MVC)上加快速度,我想知道它们在现实世界中的跟踪程度。那些使用它们的人是否尽可能地追随它们并且仅仅因为必要而偏离?或者你一般只跟着他们;如果需要混合匹配?

只是想知道我应该用一般的OOP模式来实现什么。

谢谢!



I''m just getting up to speed on OOP patterns (e.g, MVC) and I''m wondering
how closely they are followed out in the real world. Do those of you who use
them try to follow them as closely as possible and deviate only as
necessary? Or do you only generally follow them; mix-n-match as necessary?

Just wondering what I should be looking to accomplish with OOP patterns in
general.

Thanks!

解决方案

> I''m just getting up to speed on OOP patterns (e.g, MVC) and I''m

wondering how closely they are followed out in the real world. Do
those of you who use them try to follow them as closely as possible
and deviate only as necessary? Or do you only generally follow them;
mix-n-match as necessary?

Just wondering what I should be looking to accomplish with OOP
patterns in general.

Thanks!



Design patterns followed in the "real world"? That''s funny.

Seriously though. A design pattern is like a shared vocabulary. You should
try to make your code understandable to other devs as much as possible. Of
course, that''s pretty tough to do all the time. I would say to deviate only
if necessary. But, necessary is so relative....ahh. screw it. It''s Friday.

I''m going to the drag strip... :) ::rock::


Patterns are good because they help you solve problems in an elegant way
that''s extensible (provided other developers you work with "buy in" to the
concept).

I think MVC is probably a bit advanced for starters. But any of the 20 or so
"basic" patterns such as Abstract Factory, Singleton, Decorator, Facade,
Flyweight, Mediator etc. are good to study and start to "work into" your
overall approach to solving "real world" business problems with code.

My 2 cents.

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jeff" wrote:

I''m just getting up to speed on OOP patterns (e.g, MVC) and I''m wondering
how closely they are followed out in the real world. Do those of you who use
them try to follow them as closely as possible and deviate only as
necessary? Or do you only generally follow them; mix-n-match as necessary?

Just wondering what I should be looking to accomplish with OOP patterns in
general.

Thanks!



I dont know if you can really say if people "follow" them or "generally" use
them because they are more outlines of how certain things should be
organized but not really implemented (language specific that is.) Now, if
you are asking if people actually use them in the real world then that is a
different story. I would think that more and more people and companies are
moving toward some sort of pattern system when they develop new
applications. Patterns and reusability go great together when done correctly
and companies should want to have code that can be reused as much as
possible.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Charles Cox
VC/VB/C# Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"Jeff" <A@B.COM> wrote in message
news:uP**************@TK2MSFTNGP11.phx.gbl...

I''m just getting up to speed on OOP patterns (e.g, MVC) and I''m wondering
how closely they are followed out in the real world. Do those of you who
use them try to follow them as closely as possible and deviate only as
necessary? Or do you only generally follow them; mix-n-match as necessary?

Just wondering what I should be looking to accomplish with OOP patterns in
general.

Thanks!



这篇关于一般而言,模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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