Design patterns criticism sources

后端 未结 7 610
梦毁少年i
梦毁少年i 2020-12-30 01:13

I was reading the design patterns page on Wikipedia, particularly the \"Criticism\" section.

Could you point me to some articles or books about shortcomings of desig

相关标签:
7条回答
  • 2020-12-30 01:55

    One big criticism against design patterns is about how much "generic" some design patterns really are. For instance, the Strategy Pattern implementation seems to be more relevant (and complex) in languages that lack lambdas/first-class functions (compare the Java vs. Ruby, or even vs. the C# "functional" approach, here).

    But I think this argument does not deny the fact that design patterns do exist, and that they are a very good, more language-agnostic way of understanding and describing software architecture. That still holds, even if some design-patterns have easier implementations in, or are directly supported by, certain languages.

    Of course, I do also agree that many enterprise design patterns would not fit in a pure functional language. But I also believe the functional world has its own set of design patterns too (like the Monad).

    0 讨论(0)
提交回复
热议问题