Hi, Ramon, 

> -----Original Message-----
> From: Ramon Leon [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 09, 2004 7:10 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [XP] What do you think of this way of working???
> 
> 
> Updating the entire record is fairly common practice in OO, so is
> FindByID, and FindAllByParent and such.  Some of the more advanced OO
> frameworks let you do field level updating, but that's usually YAGNI.
> I'd personally prefer objects to recordset though, and let 
> the OR layer
> worry about how it gets back into the database.

These groups didn't really "know" OO... 

But it's not just the update part I'm asking about.

What about the practice of generating a complete class?  

There's no testing here... no TDD...

Kay

> 
> > -----Original Message-----
> > From: Kay Pentecost [mailto:[EMAIL PROTECTED] 
> > Sent: Tuesday, November 09, 2004 5:05 PM
> > To: [EMAIL PROTECTED]
> > Subject: [XP] What do you think of this way of working???
> > 
> > 
> > Hi, Everybody,
> > 
> > Several times I've seen companies that re-use applications 
> > for other clients.  They do this by either taking classes 
> > they've used, or by wrting a generator that creates a 
> > class... mostly a "Data Gateway" class that, no matter what 
> > the application or desired functionality, contains methods 
> > like "GetByID" "GetAll" "UpdateByID," etc. The GetBy methods 
> > retrieve a recordset, the update methods update the entire 
> > recordset, no matter what *field" needs updating.
> > 
> > As a result, when I worked in an application I inherited a 
> > lot of code that was never used... and when all I had to 
> > update was a single field, I was still updating the entire record.
> > 
> > I know it's breaking YAGNI, and I know you probably wouldn't 
> > do this on an XP project... but what do people on this list 
> > think about that way of working?
> > 
> > If you went into a company where the code was like, what 
> would you do?
> > 
> > Kay
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 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 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 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