.Net templates vs. GOF
Since the GOF book was compiled long before .Net existed, are there any specific patterns described in GOF that are not suitable for .Net? And if so, for what reason?
This is a question related to the recent generosity discussion .
source to share
The GoF book idea was not language specific, although they did provide examples to better explain the projects.
The idea was to provide patterns that appear over and over again in software development, and something like a cookbook that any developer can use to implement these patterns as needed in their language of choice.
However, when you look at .NET, as others have mentioned, you will see several design patterns implemented as first-class citizens right within the framework.
Are there any "not used" because of the language? Not. Models will still be useful even if some of them have already been implemented for you.
source to share
The C # 3.0 Design Patterns book discusses the original design patterns in the context of .NET. It's not quite as good as the original book IMO, but still worth reading.
source to share
Well, some of them are limited because they are already implemented within the framework.
For example, collections in .NET already support iteration out of the box, so in most cases you won't need to use the Iterator pattern. Another example is events that can be used instead of implementing the Observer pattern.
source to share