View Single Post
  #2 (permalink)  
Old February 5th, 2013, 12:54 PM
elbandit's Avatar
elbandit elbandit is offline
Wrox Author
Points: 599, Level: 8
Points: 599, Level: 8 Points: 599, Level: 8 Points: 599, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2007
Location: Southsea, Portsmouth, Hampshire, United Kingdom.
Posts: 107
Thanks: 11
Thanked 17 Times in 15 Posts
Default

Create objects based around behaviour rather than nouns and verbs. For example don't create a customer because there is one in real life, instead look for behaviour and model that. In an e-commerce site you have a customer and she can subscribe to a newsletter. Instead of adding all of the behaviour for newsletter subscriptions onto a customer object model a NewsletterSubscriber object. Then perhaps Customer is just the personal details of a person placing an order.

Does that make sense?
Reply With Quote