0
kicks
The Specification Pattern
In computer programming, the specification pattern is a particular software design pattern, whereby business logic can be recombined by chaining the business logic together using boolean logic.
A Specification is, in simple terms, a small piece of logic that sits on it’s own and gives an answer to a simple question … “does this match?” we start to couple our entities tightly together, and as the number of questions we want to ask of our entity increases, the more polluted its interface becomes.