我们可以在.net中使用多个模式吗? [英] can we use more than one pattern in .net

查看:81
本文介绍了我们可以在.net中使用多个模式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能提供给我完整的示例/部分代码以供学习吗

can you provide me the complete example/partial code to learn

design patterns for facade and singleton.

推荐答案

具有外观 [ ^ ]


在这里有关模式的大多数问题都告诉我,模式只是在世界某些地区被发现的,并且被误认为是某种银弹.购买GoF书,即原始的设计模式"书.从那以后,所有其他书籍都跳上了潮流,并为创造出几乎没有价值的模式而努力工作.您可以在一个项目中使用多种模式,但是如果您打算在设计中施加尽可能多的模式,则会使情况变得更糟,即使使用正确的模式,也不能保证质量代码或质量.好的设计. 《设计模式》这本书假设软件开发人员具有一定的能力和培训水平,根据这些论坛的判断,如今的情况并非如此.
Most of the questions asked about patterns around here, tell me that patterns have just been discovered in certain parts of the world, and are being mistaken for some sort of silver bullet. Buy the GoF book, the original ''design patterns'' book. Every other book since then has jumped on the band wagon and worked too hard to invent patterns that are of little value. You can use many patterns in the one project, but if you set out to force as many patterns as possible onto your design, you are making things worse, and even if you use the right patterns, that is no guarentee of quality code or a good design. The Design Patterns book assumes a level of competence and training amongst software developers that, judging by these forums, is not really the case nowadays.


这篇关于我们可以在.net中使用多个模式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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