Incredible timing!! , I was reading about this stuff today here
http://www.iknowkungfoo.com/blog/index.cfm/2007/9/13/Object-Oriented-Coldfusion--6--The-Bean-Object


That lead me to http://www.alagad.com/go/blog-entry/variables-instance
and to
http://www.chapter31.com/2007/06/14/using-variablesinstance-inside-your-components/


When I saw Sean's response to your first email it reminded me of this
comment @ http://www.alagad.com/go/blog-entry/variables-instance
"

I do it for basically the same reason. I originally used the word "Private",
but that was adviced against. I pretty sure it was Sean Cornfield who was
one of the original ones who pushed for people to use the variables.instance
name.

Posted By: Dan G. Switzer, II on Jun 22, 2007

"

I found Sean's response to this email very interesting since it contradicted
the comment I read on that blog.

Personally I understand now the reason for using variables.instance. I'm
leaning towards the use of the object name instead of "instance" though. The
reasons are explained in one of the blog entries I mentioned up here.

Fernando


On Thu, Sep 11, 2008 at 3:18 PM, Sean Corfield <[EMAIL PROTECTED]>wrote:

>
> On Thu, Sep 11, 2008 at 4:39 AM, cs01rsw <[EMAIL PROTECTED]> wrote:
> > however if we build up the cfc through the cfeclipse cfc builder then
> > it creates all variables as properties using the  cfproperty tag
>
> cfproperty is just metadata - it doesn't actually set any variables.
>
> A lot of people use variables.instance to contain the "important" data
> in their CFC (usually stuff they want to persist) as opposed to other
> stuff (like cached computed values or state information that is not
> persisted).
>
> Personally, I just use variables scope directly for my attributes.
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to