On Saturday, Mar 15, 2003, at 20:23 US/Pacific, [EMAIL PROTECTED] 
wrote:
> As far as the this scope goes though, to be honest, writing set and
> get methods is a pita even though I know it's a good habit.

Well, it's a tradeoff. If the attributes are really just public and 
have no constraints on them, then get/set buys you very little (i.e., 
if the get simply returns the value and the set simply updates it). 
However, if you want to implement a readonly attribute or you want 
validation on update or the attribute is really a calculated value, 
then you need set/get (and private data).

> Just thinking out loud here...but a keyboard shortcut that prompt's
> for the variable name and write's out the set and get methods would be
> quite handy. Maybe something for that mythical code oriented Homesite
> followup if it ever comes into being.

Something for [EMAIL PROTECTED] then? I've used Java CASE 
tools that let you visually design a Bean and, in a property sheet, 
indicate whether the attributes are readonly etc - and it generates all 
the set/get methods for you. Very helpful. Yes, it would be nice to see 
something like this in Dreamweaver's CFC Wizard.

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to