1. Mediator: When you have two classes that are in need of each other, you might create a strong coupling between them. In other words, a simple change in one class can affect the other. This is not a good thing since one of the core concepts in object oriented programming is to reduce the [...]
Tag Archives: C#
Design Patterns – Part 3
January 7, 2011
1. Proxy: The proxy pattern provides a surrogate for another object (You make your calls to the proxy, and the proxy calls the other object to get the work done). The first example that comes to mind when thinking about a proxy is web services. Web services are methods available somewhere on a server. We [...]
Design Patterns – Part 2
January 7, 2011
Structural Pattern: As the name implies, this pattern concentrates on how elements are structured. For instance, when I look at windows explorer, I see a folder that contains a list of other folders that contains files and folders, and so on… This concept relates to the composite design pattern. The patterns we will explore in [...]
Introduction to Design Patterns Using C#
January 6, 2011
Design Patterns are common solutions to problems you encounter as you are developing software applications. As you are writing code and finding elegant solutions to business problems, you see yourself asking questions such as: why am I copying and pasting code very often? I think I have seen this problem before, did I write a [...]

January 7, 2011
0 Comments