Title: Message
Well funny enough I decided to buy the book after I read that sample and went like, hmm I had no idea, thus figured it might be a good investment to get to the nitty gritty of CFCs and its work arounds. Had a look at Amazon and no mention of any updates ont he book, tried to cancel the order but no luck...
-----Original Message-----
From: Adam Cameron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 29 June 2004 9:54 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: this

Useless?  I wouldn't go that far.
 
If it hasn't been updated to reflect how it all works in CFMX6.1?  Then yes, it's going to be misleading, and I'd probably not bother with it.
 
Hopefully, though, the book has been revised to reflect how CFMX6.1 works... probably best to check that, though.
 
There's stacks of stuff on CFC lurking around on the net, though.  To be honest, I'd just use google rather than buying a book.  There's not *too* much to know about then, so after you've read the stuff on a couple of sites, you pretty much know all there is to know.
 
I got up to speed using the CFMX docs, and subscribing to the mailing list @ CFCZONE (or at the very least reading through their archives).  The Macromedia webforums are sadly lacking in the CFC department though, I've found.
 
 
 
Adam Cameron
Senior Application Developer
Straker Interactive

Ph: +64 9 3605034
Fx: +64 9 3605870
Email: [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur
Sent: Tuesday, 29 June 2004 11:42 a.m.
To: CFAussie Mailing List
Subject: [cfaussie] RE: this

I just ordered his book, the link I gave was to a sample from his book, is the book useless then?
-----Original Message-----
From: Adam Cameron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 29 June 2004 9:38 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: this

I suspect that that Helms thing is was written for CFMX6.0.  Avoid.
 

Adam Cameron
Senior Application Developer
Straker Interactive

Ph: +64 9 3605034
Fx: +64 9 3605870
Email: [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur
Sent: Tuesday, 29 June 2004 11:26 a.m.
To: CFAussie Mailing List
Subject: [cfaussie] RE: this

I'm just reading this article by Hall Helms (http://www.google.com.au/search?q=cache:QA57J4HK-uwJ:halhelms.com/webresources/samplechapter.pdf+%2BCFC+%2Btutorial+%2B%22%3Ccfset+this.%22+&hl=en) I probably don't understand what he is saying (most likely) but it sounds like what you guys are saying contradicts what he is saying?
-----Original Message-----
From: Adam Cameron [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 29 June 2004 9:20 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: this

Nope.
The "unnamed scope" - by which I guess you mean the scope in which VARed variables go in - are local to a function instance; not really in a similar vein to "this-scoped" variables @ all, as they have nothing to do with the state of an object: they get cleaned up as soon as the function calling them finishes.
 
You should use the VARIABLES scope of an object to store "private" data (well: more like "protected", I think... I forget my OO jargon).  Accessible internally to the instance of the object, but not to the code instantiating the object in the first place.
 
Having said that, there's no true way of securing even those variables, as there's nothing to stop someone instantiating the CFC and then inserting their own functions into it, which in turn access the internal variables scope.  This sucks a bit.
 

Adam Cameron
Senior Application Developer
Straker Interactive

Ph: +64 9 3605034
Fx: +64 9 3605870
Email: [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Taco Fleur
Sent: Tuesday, 29 June 2004 10:58 a.m.
To: CFAussie Mailing List
Subject: [cfaussie] this

So the this. structure is available outside CFCs and can be directly accessed, and the closed you get to protecting the variables is by using the un named scope, which is basically a work-around. Is it not better to keep using the this scope as intended and hope that the way it functions will change in the next release of ColdFusion?

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



Reply via email to