Another question might be, do all those properties *really* belong in that object, or can you use inheritance or composition to break things up further?
If these properties really do seem to belong to this object, then I wouldn't include them, but rather just push them all down to the bottom of the CFC so they're out of the way. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Wednesday, January 07, 2004 12:22 PM > To: [EMAIL PROTECTED] > Subject: [CFCDev] Best Practices Question: Getters and Setters > > > > > > > I have a CFC with 26 properties. None are inherited. I find > that having 52 methods for getting and setting to be a bit > cumbersome to keep in my CFC with the "real" methods. I was > thinking of including all my getters and setters from a CF > template. Let's say that the my code looks like this: > > facility.cfc > <cfcomponent hint="I am a facility"> > <!--- Include the getters and setters ---> > <cfinclude template= "facilitygetset.cfm"> > > <!--- Start the more complicated stuff ---> > <cffunction name="firstrealmethod"> > . > . > . > </cffunction> > . > . > . > . > </cfcomponent> > > Any thoughts on this as a good idea, bad idea, unintended > consequences? > > > ------------------------------------------------ > Gerry Gurevich, > Lockheed Martin > [EMAIL PROTECTED] > 919-572-7818 > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words '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 words '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]
