Sean, If Macromedia wishes to use that as a standard that is fine, then macromedia should then remove that scope from existence!
My point and I think you missed it, I chose to look at execution times as well like I said it is a very complicated framework. And if you have a company standard that is good, but lets say you had a job opening and I came along and applied but choose to see execution time as a bigger benefit would I not get hired because I don't see your full point? Now to claim that Macromedia DON'T use the this scope is a very big statement I know you can not back up. In either Coldfsuion or your Java programming I bet if I looked hard enough I could show you thousands of examples where you do! Coldfusion maybe not, it is very spaghetti code to start with. But Java I think I could without evening trying! 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 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Corfield Sent: Thursday, 1 July 2004 7:38 AM To: CFAussie Mailing List Subject: [cfaussie] RE: this On Thu, 1 Jul 2004 07:19:18 +1000, Andrew Scott <[EMAIL PROTECTED]> wrote: > Ok maybe this example would be better for you Nope. > I don't need to do encapsulation here, and again this one of many > examples in our framework were I don't need to worry about it... My > choice not yours, And here we agree. It is *your* choice. And it is my choice to recommend folks don't use "this" scope under any circumstances. You missed a point I made earlier even tho' you actually confirm it here: > Like I said I understand the risks and the dangers and it is all > taking into consideration when I design my component. *You* may understand but a newbie won't necessarily. And newbies tend to see code and just run with it. If there is a sense that "this" scope is 'good', newbies will program that way and then be very confused when everyone starts telling them their code is crap. All I'm trying to do is ensure that folks see "this" scope as a very rare exception. And if you were writing code in Macromedia, you wouldn't be using "this" scope even in the examples you gave - you'd add get/set methods and use "variables" scope. And that's our choice :) Pretty much every coding standard for every OO language prohibits the use of public data members - to preserve encapsulation - a term that any newbie going anywhere near OO needs to learn and understand. --- 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/
