Good points. I'd only spoken to the design aspects, but those don't always mesh with real world constraints. ;)
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Ben Curtis > Sent: Friday, October 03, 2003 3:35 PM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] Length of a CFC > > > > > "too long" is usually a matter of circumstance. Is you object doing one > > discrete job and/or representing one discrete thing? If so, > then I'd say > > it's the right size. If not, then you should be able to split it up. > > That said, under one development plan we built one CFC per > database table to handle all interactions with the table > (for this project, the objects' data mapped pretty much to > the table columns). Then along came a spec for a db table > that had several hundred columns. As a result, the first > pass at the cfc resulted in 3600 lines of code. We found > that CF barfed on instantiating this and even Dreaweaver > barfed when trying to open the file (I think the > color-hilighting was the culprit, not the file size). > > We recoded it with some loops to handle the reptition (the > SQL remained the same), which brought it down to about 300 > lines and all was well. > > -- > > Ben Curtis > WebSciences International > http://www.websciences.org/ > v: 310 478 6648 > f: 310 235 2067 > > > > > > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
