7
Shouts

Getting specific with the Specification Pattern

published 791 days, 23 hours, 50 minutes ago posted by http://2leggedspider.wordpress.com/http://2leggedspider.wordpress.com/ 793 days, 13 hours, 3 minutes ago
Friday, March 25, 2011 7:20:06 AM GMT Wednesday, March 23, 2011 6:06:59 PM GMT

The idea of Specification pattern according to Martin Fowler is to separate the statement of how to match a candidate, from the candidate object that it is matched against. As well as its usefulness in selection, it is also valuable for validation and for building to order. In simple terms it means this pattern helps us to check if an object satisfies certain criteria. Well, we do that all the time in our code don’t we? For instance, we check if the data in an object that we send to a web service or dat...

category: Architecture | clicked: 2 | | source: 2leggedspider.wordpress.com | show counter code