Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    You see now that is so much cleaner than the example in the book which is supposed to TEACH good design... Commented Aug 29, 2013 at 17:31
  • 1
    I like this solution best so far. ( maybe because I have ben doing this myself so far) Although the specification pattern , as it has been suggested, works too , but this is simple, easy to read.And you can unit test each method separately Commented Aug 29, 2013 at 18:09
  • 1
    There are some really insightful answers , yours has the code and it looks very clean to me. Accepted. +1 Commented Aug 30, 2013 at 13:05