Why Design Patterns are so Important?

 Design Patterns help software developers, developing and engineering software that is easy to maintain, easy to read by creating blue prints of already solved problems. These blue prints are the patterns themselves.

I often used to think, why this particular code is so much better than mine. What I dint know was industry uses patterns and I dint. Therefore, my code looked all over the place, hard to change. Now I know better. 

Therefore, after analysis of what problem engineer are trying to solve they must take time and try to fit their code into some of the existing pattern. This will ensure that the solution proposed get developed faster and looks good 😀

It is of crucial importance to be aware of at-least the most commonly used patterns.  Design Patterns are known.

A quick search from google will give you a list like this as the most widely used (and from my exprience)

  • Builder Pattern 
  • Stratergy Pattern
  • Singleton Pattern
  • Observer Pattern 
  • Decorator Pattern 
  • Factory Method Pattern
  • Adapter Pattern 
  • Composite Pattern
  • Facade Pattern 
  • State Design Pattern

Designing is something that I believe will be learned by doing . So in order to learn them I would suggest you go through each design pattern know their defination and try to solve problems using these patterns at your work or as a hobby. 

For example next time you see that there are many attributes in a class try the builder pattern . In Spring Boot its even more easier like @Builder and we are done. 

Another thing is design patterns are not dependent on the language however, most of the patterns apply to object oriented paradigm . 


I would highly recommend watching this playlist .  



Comments

Popular Posts