> In the Macromedia Press/Ben Forta Advanced ColdFusion MX 
> book, he has a fair amount of text and examples related to 
> the usage of the THIS scope (chapter 17).  I was just curious 
> what the rationale was back then when that was written (my 
> copy is copyright 2003) to show examples related to THIS, but 
> almost no examples of what is commonly known today to be best 
> practice (variables scope, et al).  Was that just plain 
> 'wrong' in the book, was it wishful thinking, or has CFMX 
> changed to where that was right then but wrong now?

It was never right. However, I suspect that this wasn't given so much
thought at the time, since most CF developers had little or no experience
with OO.

> Just curious, since given the author list its tantamount to 
> biblical doctrine. Or something.

One should never ascribe the word of God to the hand of man for exactly this
reason. In any case, the official MM courseware takes the same tack, so
everytime it's taught we have to spend quite a bit of time talking about why
public member variables are bad.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444

----------------------------------------------------------
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 
[EMAIL PROTECTED]

Reply via email to