设计模式批评来源 [英] Design patterns criticism sources

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

问题描述

我正在阅读维基百科上的设计模式页面。更具特色的批评部分。你可以指点一些关于设计模式缺点的文章或书籍吗?

I was reading Design patterns page on Wikipedia. And more particullary "Criticism" section. Could you point me to some articles or books about shortcomings of design patterns?

推荐答案

大多数对我设计模式的批评遇到了与他们认为只是良好的面向对象实践的结构和标签的厌恶。大多数模式归结为编程接口和其他SOLID原理。感觉是,当我们教授模式时,我们会使开发人员,特别是初级开发人员试图将所有问题都集中到他们所学到的一系列模式中,这可能会产生比这更加直接的更加棘手和麻烦的问题,

Most of the criticisms of design patterns that I have come across relate to a distaste for the structuring and labeling of what they consider to be just good object oriented practices. Most patterns boil down to programming to interfaces, and other SOLID principles. The feeling is that when we teach patterns we cause developers, especially junior developers to try to cram all problems into the set of patterns that they have learned, which can create more obtuse and cumbersome problems than if they had taken a more 'straight forward' approach.

我倾向于同意一旦你开始学习你倾向于使用它们的模式,但是,通常你很快就会走出这个阶段,并成为更有成效和专业的软件职业生涯。

I tend to agree with the sentiment that once you begin to learn patterns you tend to over use them, however, typically you very quickly move out of that stage, and into a much more productive and professional software career afterward.

作为奖励,这里是Jeff Atwood的一些温和批评
Mark Dominus的一些关键见解

这篇关于设计模式批评来源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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