Today let’s start with very common and easy design pattern called Singleton design pattern.

Welcome to the Design Pattern For Beginners article series. Here in a few parts I will be discussing various design patterns (in other words a few of the most popular) basically targeting beginners. Most of the patterns I will discuss in my own style and my own words. And before starting any pattern, we will try to find the basic need for it. So, let’s start our journey with a very nice quote.

“It’s easy to walk on water and develop software from specifications, when both are frozen.”

Hey, that’s not mine!! And I have forgotten from where I read it. My poor memory says I read it somewhere in someone’s blog. If anyone has any information please put a few keystrokes in the comments section.

Anyway, let’s return to the subject of this article. Really, it’s very easy to develop software from specifications and when the requirements are constant. But by nature people are not happy with constant and fixed needs. (Yes that’s why language designers created variables! Ha… Ha…)

And here design patterns come in to play. If we implement a proper design pattern then we need not worry much when new requirements are added to the old ones. And here lies the importance of design patterns.

As I said earlier, this article series is targeted to young developers and if you fall in this category then this introduction is enough to make explain “Why a design pattern is very essential”.

I am grateful to “Shivaprasad koirala Sir”; yes, from your video tutorial I have heard the word “Design pattern” for the first time and many many thanks for providing the first gear of my design pattern journey.

Ok, that’s a long introduction. Today let’s start with a very common and easy design pattern called “Singleton Design Pattern”.

**Singleton Design Pattern **

Let’s learn why the Singleton Design Pattern is implemented. And then we will see how to implement it in C#.

#design-pattern #csharp #programming #developer #java

Design Pattern For Beginners - Part-1:  Singleton Design Pattern
2.15 GEEK