DEV Community

Discussion on: Frequently used design patterns

Collapse
 
bgadrian profile image
Adrian B.G.

Just a reminder, "most used" does not mean that they are used correctly, or they are the best solution :D

Collapse
 
rcosteira79 profile image
Ricardo Costeira

This. One of my greatest fears is will end up suffering from "design patternitis". I've had situations where the first solution I thought was to use some pattern, but later ended up not implementing it due to the impact on both performance or code complexity. Nevertheless, knowing the pattern helped me reach a better solution, so there's that.

Relevant link: jono.woaf.net/design-patterns/

Collapse
 
bgadrian profile image
Adrian B.G.

I think that if you go the other way around is better. Work your problem, and if in the end the solution ressemble a common pattern then you have a guideline how to implement it.
Your business logic is important, not the patterns.

Thread Thread
 
rcosteira79 profile image
Ricardo Costeira

Yes, I completely agree with you :) I was just talking about my own experience. I usually end up doing what you said, but it is quite common for me to easily recognize a pattern use case before starting any kind of implementation, and hence my fear.