The need and motivation for following SOLID Design Principles

Photo by Crawford Jolly on Unsplash

Most of you have lived a day when you are greeted at your desk by the morning refreshing breeze(air wick), and a few have smelt it turning pungent at the sight of bugs raised. You take a few sips of coffee while shallow debugging just enough to conclude, “This is easy, couple of line changes and it would work like a charm!”. In the following Stand-Up, you face the grinning QA and declare a good and lavish 8 hours for the fix in front of…

(Part 1/2)

This post(s) is an attempt to present the contrasting differences between several Creational Design Patterns in layman terms.

- Purpose of Design Patterns, (checkout)
- Familiarity with SOLID Design Principles (checkout)
- The patterns covered here are not bound to any programming language, this blog will not be containing any code snippet but only class diagrams. (how to class diagrams)

What are Creational Design Patterns?

Creational Design Patterns deal with object creation mechanisms, trying to increase efficiency, code reuse, and flexibility.

What are the different Creational Design Patterns?

  • Factory Method
  • Abstract Factory
  • Builder
  • Prototype
  • Singleton

Factory Method


Creational design patterns are all about creating new objects. In our case, let us consider the…

Photo by Giulia May on Unsplash

The origins of Design Patterns

Back in the 90s, object-oriented programming was the talk of the town. The programmers were bejewelling their codebase with superclasses, virtual functions, and complicated inheritance. Not coincidentally, the programmers often ran into trouble given the limitations of then programming languages.

It was the “Gang of Four” who first introduced the idea of Design Patterns. The GoF were inspired by the concept of architectural patterns (yes, namespace: civil) that defined a language for town planning. The window dimensions, levels in a building, parks in the neighborhood, etc. were the important aspects of town planning.

The book “Design Patterns: Elements of Reusable…

Thought-provoking thoughts

Have you ever wondered, if there would exist a higher dimension, in addition to the so-called X, Y, and Z dimensions? Have you ever felt how weird or amazing our lives would be if the universe had (has) a few more spatial dimensions? I know there are a lot of sci-fi movies that elaborate on the existence of the fourth dimension, but don’t you feel there could be a fifth, sixth, and seventh dimension? Wait, is it going to be infinite of them? Well, there was a situation when physicists decided to apply a postulated theory on both big (extremely…

Why Google Camera?

Here are some comparisons between the two:

Vignesh Pai

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store