>> treat them as properties and you will not go wrong.

refering back to other languages (for me it's VB) and you start to see
the similarities.

we have public (this) properties, protected (variables) properties... 

but are we ever going to get (uninheritable) private properties?

just a thought
barry.b



-----Original Message-----
From: Taco Fleur [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 29 June 2004 11:40 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: this


Hi Andrew,

I'm used to procedural programming and only started thinking a little
OOP since CFMX, I'm in no position to make any comments or accept
anyone's comments (since there are so many different opinions), I think
only time will teach me in this matter..

T

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 29 June 2004 11:19 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: this



I so laugh at this statement

And I quote

"Although putting data in the this scope is perfectly valid and will not
cause any errors, it generally isn't seen as a good idea. The main
reason
being that you lose the ability to tightly control that data from within
the
CFC, so breaking the encapsulation. That leads to increased overhead
when
you try to maintain the code, because you can't just look at what's
happening inside the CFC before making changes. You have to also look at
where it is used and how it is used to make sure none of the data in the
this scope is being added, modified or removed by external code."

Then if you treat them as properties, then what is your problem:-)

This is how OOP works in Java and .Net and should be the way developers
treat them in coldfusion! As properties, then you would know that there
is
an external influence. Even if you had a get/set method then you would
have
the same problem, treat them as properties and you will not go wrong.

Taco if your reading this, I suggest reading on how classes are used in
Java
and follow there guides on how they do it and apply these rules to your
framework and what best suits you.



Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Register now for the 3rd National Conference on Tourism Futures, being
held in Townsville, North Queensland 4-7 August - www.tq.com.au/tfconf

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to