On Wednesday, December 1, 2004, at 11:52:47 AM, Stede Troisi wrote:

> I was thinking about YAGNI yesterday. Normally, I see
> most people create a customer class that holds domain
> information and another class, say CustomerDb that
> persists the information from customer to a database.
> This makes sense, becuase if I want to persist to
> something different (like a flat file) I can create a
> new class to handle it while leaving the domain class
> intact.

> But two objects that share the same basic fields
> (customer) seems to go against YAGNI. Is this how most
> people solve the problem or is there a better
> solution?

I like to consider issues like these by looking at the code. Have you some
code we could look at, simplified, perhaps? Ideally with tests?

Ron Jeffries
www.XProgramming.com
This is how I develop software.
Take the parts that make sense to you.
Ignore the rest.




To Post a message, send it to:   [EMAIL PROTECTED]

To Unsubscribe, send a blank message to: [EMAIL PROTECTED]

ad-free courtesy of objectmentor.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/extremeprogramming/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to