<= Home
A pattern is still just that, a pattern
Some have emailed me questions about classical design patterns (original GoF) being altered or replaced in .NET because of some of the language’s new features. A good example is the observer pattern. The observer pattern’s purpose is to implement a way of notifying change to other classes and doing this in a decoupled fashion. The traditional approach is easily replaced in C# by using events.
This emphasizes the point that design patterns are only templates. The pattern’s actual implementation can vary depending on the problem it is being applied to or even language features of a particular platform. Either way you choose to implement the pattern, the primary purpose of the pattern is still achieved.
Personally, I have seen most of the classical design patterns are still being implemented in C#/VB.NET similar to the book’s C++ examples. But as new language features become available or technology changes in the future the implementation may continue to alter but the patterns themselves stay the same and are still as relevant.