Good point. Flash won't call methods that return (or output) HTML, so they
wouldn't have to change. But you would have to add some getter methods (if
you've taken Holub's advice to get rid of them)! You can't write a
'DrawThySelfAsAFlashForm' method in a CFC very easily...
I'm not going to get rid of my getter/setter methods, but mine are defined
in my core.cfc (as get('property') and set('property', value) ), so it seems
one of Holub's arguments against them don't apply in my case: I don't have
added complexity because I don't have to write any code, I just have to
identify the properties. But I will concede that they shouldn't be used
much, and I'll try to not use them.
-----Original Message-----
From: sean [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 2:51 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] DB and OO question
What happens if the UI changes from let say HTML to Flash? Doesn't this
mean that you will have to modify your object cfc because the view is
integrated within?
Sean
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Howerter
Sent: Thursday, September 11, 2003 4:44 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [CFCDev] DB and OO question
I just read Holub's article. Applied to ColdFusion MX, I think it is a
good
argument to encapsulate more of your data access within CFCs, including
writing methods to do display instead of retrieving values to display on
your own. Once you put the display methods in your CFCs, then you can
dispense with the setter/getter methods. Holub says "Draw Thyself".
***
The information in this email is confidential and intended solely for
the individual or entity to whom it is addressed. If you have received
this email in error please notify the sender by return e-mail, delete
this email, and refrain from any disclosure or action based on the
information.
****
----------------------------------------------------------
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]
***
The information in this email is confidential and intended solely for the individual
or entity to whom it is addressed. If you have received this email in error please
notify the sender by return e-mail, delete this email, and refrain from any disclosure
or action based on the information.
****
----------------------------------------------------------
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]