Design Patterns

Usha Devasi
3 min readMay 7, 2020

--

In this article instead of diving deep into design patterns, I would like to create a base, telling you what it is and why we need this, how it got originated.

So, it will help us with building reusable and extensible software.

What to expect from this reading?

  • What is the design pattern?
  • Understanding the concept of Design pattern by co-relating with daily routine example.
  • Importance of Design Pattern
  • Types of design patterns

What is Design Pattern?

A reusable and named solution to a recurring problem in a context.

Concept Understanding:

Every morning 90% of us when wake up, the very first thing we do is brushing our teeth. It's not a rule but still, we follow it as part of our daily routine without giving any kind of thought…WHY? Because since childhood it's being taught to us that it is a good habit, we gonna feel fresh and no bad breath, our teeth will be health.
So, I want to convey that more than 90% do this because its a solution for the problems faced many people in past and than they made it as part of good habits (Tried and tested).
Brushing teeth is the first solution whenever the problem is related to teeth.so that’s the pattern.
See, how simple is the concept.
In other words, we can also say that it’s a way to solve any kind of problem from the part experience.

They are discovered but not created because it comes with experiencing the same problem by different people and different approaches and then coming to one most suitable solution.

Importance of Design Patterns :

  1. Help to move forward fast whiling designing/taking decision for your system.
  2. Helps you work with your co-worker as by using the terms, you need not explain in detail what you what to say.

Types of Design Patterns:

There are 23 known and many more design patterns available but they are and categorized based on their nature.

Creational: It shows ways to create objects.

Structural: How classes and objects are structured.

Behavioural: Shows how these classes and objects are interacting with one another.

Design pattern space

Patterns didn’t start in the software engineering field, they started with Christopher Alexander(professor of architecture). But later it was seen to be useful in software engineering field too where it got more popular.
If you want to do deep drive, it is highly recommended to refer 2 books: “Design Patterns- Elements of Reusable Object-oriented software” written by GOF & “Head First Design patterns” by O'Reilly.

I hope, now you are able to understand the meaning of design pattern.
I will try to cover different patterns as many as possible in a simplified way by relating them with our life.

--

--

Usha Devasi
Usha Devasi

Written by Usha Devasi

Tech Lead/ Engineering Manager, Mentor, Coach, Certified Professional Scrum Master and SomeOne who is Passionate about Learning and exploring.

No responses yet