Design patterns criticism sources

后端 未结 7 657
梦毁少年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:34

    Design patterns were hyped a lot about ten years ago; it seems to me that most of the criticism is about overarchitecting applications and applying all the patterns you can think of wherever you can. This heated debate is pretty boring when you take the rant factor out - yes, too much of anything is not good and to inexperienced programmer with a hammer everything looks like a nail.

    From time to time, somebody will discover that something he's been doing for the whole time has a name and comment that it doesn't deserve to have a name (missing the point that design patterns are about naming sometimes obvious things so that you can talk about them).

    Apart from that, you're basically left with the fact that some languages have a few patterns built-in, and some other don't, and academic debate about how with time some patterns become programming language features.

    I haven't seen much valid criticism related to design patterns beside that. They definitely exist, sometimes they are useful, you don't have to know all of them when somebody wakes you up at 3 AM, and that's about it. :)

提交回复
热议问题