Hey folks! few weeks ago i started a new challenge to learn about one design pattern everyday i called it “#DesignPatternsEveryday”.
Since i completed the challenge i thought i should share briefly what i learned about design patterns, let’s get started.
I will be going over most of the patterns and going to explain them in my own words, so if you find any mistakes or misinformation please let me know. i’m not a design patterns expert.
“Design patterns are typical solutions to common problems in software design. Each pattern is like a blueprint that you can customize to solve a particular design problem in your code.” - refactoring.guru
There are 3 categories of design patterns, we are going to cover them one by one.
Also note that, One thing is really important for utilizing design patterns in your project.
Never start with the mindset of “okay I’m going to use {this pattern} in the codebase”
Judge & analyze the code base, plan the logic and implementation first then apply design patterns to solve any particular problem only IF NECESSARY.
Design patterns are solution to problems, not solution finding problems.
Table of Contents
#design-pattern #developer