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

Akos Nagy Oct 26, 2021
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 was — so
Repository and unit of work ARE useful

Repository and unit of work ARE useful

Akos Nagy Oct 26, 2021
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'm very tired of having
Memento design pattern done (almost) right

Memento design pattern done (almost) right

Akos Nagy Oct 26, 2021
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