dotnet falcon

Blogging about .NET and software development - from my bird's eye view

Software design

The specification pattern and variance

The specification pattern and variance

Jun 25, 2019
In a previous post I described the specification pattern, its uses and benefits and also gave a pretty neat implementation. However, there was something that I didn't discuss: the variance aspect of the pattern. It is a very important aspect, but that post was long enough as it
Repository and unit of work ARE useful

Repository and unit of work ARE useful

Nov 20, 2018
The repository and unit of work design patterns are useful. This is a statement that I can get behind in any debate when this topic comes up. Don't worry, I'm not dogmatic, I have a couple of really good arguments (IMHO) as to why. But I&
Memento design pattern done (almost) right

Memento design pattern done (almost) right

Nov 13, 2018
I regularly teach courses on basic object-oriented design patterns. Over the years I have come to realize that not every pattern is equally useful or equally well-thought out. One of the most common examples of patterns that have become more like anti-patterns over the years is the Singleton pattern. But