欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

Rethinking Design Patterns - from Jeff Atwood

发布时间:2023/12/19 编程问答 40 豆豆
生活随笔 收集整理的这篇文章主要介绍了 Rethinking Design Patterns - from Jeff Atwood 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

本文出处[1]

...

It's certainly worthwhile for every programmer to read Design Patterns at least once, if only to learn the shared vocabulary of common patterns. But I have two specific issues with the book:

  • Design patterns are a form of complexity. As with all complexity[肯定是复杂了,至少不直接了], I'd rather see developers focus on simpler solutions before going straight to a complex recipe of design patterns.
  • If you find yourself frequently writing a bunch of boilerplate design pattern code to deal with a "recurring design problem", that's not good engineering-- it's a sign that your language is fundamentally broken[不同的语言有不同的应用领域,不可能同时满足所有领域要求].
  • In his presentation "Design Patterns" Aren't[2], Mark Dominus says the "Design Patterns" solution is to turn the programmer into a fancy macro processor. I don't want to put words in Mark's mouth, but I think he agrees with at least one of my criticisms. [这句话比较搞]

    ...


    备注:Jeff Atwood是Stack Overflow和Stack Exchange Network的联合创始人

    [1] http://www.codinghorror.com/blog/2007/07/rethinking-design-patterns.html

    [2] http://perl.plover.com/yak/design/samples/

    转载于:https://www.cnblogs.com/hanhuilee/archive/2012/12/19/5221416.html

    总结

    以上是生活随笔为你收集整理的Rethinking Design Patterns - from Jeff Atwood的全部内容,希望文章能够帮你解决所遇到的问题。

    如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。