The aim of this article is to understand the basics of the Composite pattern and try to see when it can be useful. We will also look at a toy application using composite pattern to get better understanding of the pattern. The example code in this article will be mainly for the illustration of this pattern and will be a not-so-real world example. The idea of this this article is to illustrate the concept of composite pattern only. Continue reading
design patterns
Beginner’s Tutorial on Understanding and Implementing Null Object Pattern in C#
In this article we will try to understand the Null object pattern and see how this pattern can help us to write more robust code. We will implement a contrived example to demonstrate this pattern. Continue reading
An Absolute Beginner’s Tutorial on Understanding and Implementing Singleton Pattern in C#
This article is yet another explanation and implementation of singleton pattern. We will look at what is singleton pattern is and how to implement it in C#. This is no way the best and recommended way of implementing singleton pattern in C#. the main idea for this article is just to present the concept of singleton pattern to the reader. Continue reading
A Beginner’s Tutorial For Understanding and Implementing Service Locator Pattern in C#
In this article we will try to understand the service locator pattern. We will also implement a contrived implementation to demonstrate the service locator pattern. Continue reading
An Absolute Beginner’s Tutorial for Understanding and Implementing Strategy Pattern in C#
The aim of this article is to understand the basics of the Strategy pattern and try to see when it can be useful and have a rudimentary implementation for better understanding. This is no way to implement the strategy pattern in real world applications and the example taken is also far from real. The idea of this this article is to illustrate the concept of strategy pattern only. Continue reading
Understanding and Implementing Factory Pattern in C#
In this article we will try to understand what is Factory Pattern, what are the benefits of this pattern and how can we implement this pattern using C#. Continue reading
Understanding and Implementing the Iterator Pattern in C#
This article aims at explaining the Iterator pattern and having a rudimentary implementation of the Iterator pattern in C#. This article is meant for beginners and does not use any language built-in features for iterations. Continue reading
Understanding and Implementing the Command Pattern in C++
The idea of this article is to understand what is Command Pattern, when is it useful, and how can we get a basic implementation of Command Pattern using C++. Continue reading
Understanding and Implementing the Adapter Pattern in C# and C++
This article aims at understanding when we could find the Adapter pattern useful and how can we have a rudimentary implementation of the Adapter pattern using C# and C++. Continue reading
Understanding and Implementing Template Method Design Pattern in C#
This article talks about the Template method design pattern, when could this pattern be useful and what benefits we can get from it. This article also presents a rudimentary implementation of template design pattern in C#. Continue reading