Browse by Tags
All Tags »
C# »
Architecture (
RSS)
Applying Strategy Pattern Instead of Using Switch Statements Once in a while I’m stumbling on switch statements during a Code Review session. Whenever this is happening my first reaction is to understand why did the developer use it. Since using switch statement sometime implies spaghetti code and also can get very crowded (in case statements of course) in this post I’m going to show an alternative method that I prefer to use. Alternative Method for Switch Statements Whenever you start to use a switch...
This is the last post in the series of design patterns. The post describe the interpreter design pattern and shows an example in C#....
The post describe one of the most commonly used design pattern - the observer pattern. ...
The post explain the use of the visitor design pattern and how to implement it in C#...
The post explain what is the state design pattern and how to implement it in C#....
The post is another post in the design patterns series. It describes the memento pattern and how to use it in C# code...
The post describes the mediator design pattern with an example of how to use it in C#...
The post describe the chain of responsibility pattern and shows an example of how to use it in C#....
In the post I reveal the command design pattern and I show how to implement it in C#....
In the post I reveal the template method design pattern and show examples of how to use it in C#....
In the post I describe what is the Unity application block, why to use it and when to use it....
In this post I explain the iterator design pattern and how to implement it in C#....
In the post I explain how to use the strategy design pattern and show a C# implementation exmple....
In this post I give an introduction to the third design patterns type - the behavioral patterns....
This post describe the builder pattern and how to implement it in C#....
More Posts
Next page »