Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid overusing design patterns? [closed]

I know that design patterns are time tested solution to a particular type of software problems.
But how would I know that I am overusing a design pattern?
How much is too much ?
What things should I keep in mind while using design patterns to avoid overusing?

like image 582
max Avatar asked Oct 10 '22 21:10

max


1 Answers

The only possible way I can think of is to get a real grip on the design pattern before you even think of using it.
Before using the design pattern you must know what exactly it is meant for?
What may be the advantages/ disadvantages of using it ?
Start with your own idea and see if the design patterns fits along the way.
You can even make slight modifications in the pattern if it makes your code better.
If you are a beginner just don't worry to make some mistakes because it is the way we all learn.
Design patterns are really great but can make your code unnecessarily complex and bulky if not used wisely.

Hope this helps.

like image 143
EMM Avatar answered Oct 14 '22 03:10

EMM