How I learned Design Patterns in C#
About me
Full Stack Dotnet and Angular Developer.
Why I wanted to learn Design Patterns in C
Design Patterns in any programming language are a must every developer should learn , understand and implement it.
How I approached learning Design Patterns in C
If you are writing code for atleast 5 years , congratulations you have used some of the design patterns but you are not aware of it. So I figured out those design patterns that I have already used like Iterator , Observer , Proxy to name a few.
The next thing I highlighted the patterns that are most frequently used like factory, adapter , builder patterns.
Now to learn these patterns I listed down the problem each of these pattern solves. Once I understood the problem and to find the solution was not a rocket science.
Challenges I faced
There are many contents available online on design patterns , many books are written on it. Lot of tutorials also available. But I didn't understand these much. Moreover there are more than 23 design patterns available which discouraged me .
Key takeaways
Tips and advice
For every pattern you want to learn try to find the problem it is trying to solve and then find the solution than makes learning design pattern interesting .
Final thoughts and next steps
I learnt around 15 design patterns out of which I know all 5 creational patterns and I love the concept and the problem these patterns solves.