DEV Community

Discussion on: Design Patterns Everyday

Collapse
 
aghost7 profile image
Jonathan Boudreau

Very nice and exhaustive article! In my experience, I've seen people misuse a lot of these patterns. How would you tell if for example the strategy pattern is not a good choice for your problem? Would be great if you could expand on that in your article.

Collapse
 
anuraghazra profile image
Anurag Hazra

It's already mentioned in the post

Design patterns are solution to problems, not solution finding problems.

Design patterns are not silver bullet to every problem and if anyone is creating the problem just to solve it with a specific design pattern then it's very harmful.

IMO any solution should be rapidly prototyped first and then and only then if it's beneficial to implement a design pattern (or combination of them) we should approach for it.