Specification Pattern and Lambdas « Ang3lFir3 - Life as a Code P. While working on my current project I decided that I had a need to use the Specification Pattern .
After finding a clean implementation by Jeff Perrin I set to work creating the specifications that I needed. I quickly realized that we were going to end up having a ton of specifications and sometimes they would only apply to very special cases. Other times they would be very broad cases and they needed to be even more composable than even the fluid interface implemented in Jeff’s implementation wasn’t going to be enough. The Specification Pattern - Jeff Perrin - Sexier Than You Are. Hot on the heels of my devastatingly fantastic post on an implementation of the Snapshot Pattern, I give you my next piece du resistance.
In this little post, I'd like to delve into the Specification Pattern. So what the heck is it? Matt Berther provided a pretty good introduction where he states: It's primary use is to select a subset of objects based on some criteria... Composite Specification Pattern - Home.