This post originated from an RSS feed registered with PHP Buzz
by Jason Sweat.
Original Post: The Specification Pattern
Feed Title: Jason E. Sweat's weblog
Feed URL: http://blog.casey-sweat.us/?feed=rss2
Feed Description: Blogging about whatever interests me at the moment, mainly PHP, web application and Gentoo Linux.
This chapter was fun to write because it strays a bit from the Gang-of-Four/Fowler PoEAA design pattern mainstream. Fowler has written some articles on this pattern and Eric Evans covers it in some detail in Domain Driven Design". I first show a hard-coded example, and then a parameterized specification which ...