September 2016
Intermediate to advanced
270 pages
5h 16m
English
The Specification design pattern is incredibly powerful. Here, I will attempt to provide a high-level overview of it, but there is plenty to explore; I highly recommend the paper Specifications by Eric Evans and Martin Fowler if you are interested in learning more.
This design pattern is used to codify business rules that state something about an object. They tell us whether an object satisfies some business criteria or not.
We can use them in the following ways:
In this example, we're going to build Specification to query
Let's take the following objects: ...
Read now
Unlock full access