[flexcoders] General list consensus using 'this' when referencing local vars

2008-04-08 Thread Mike Anderson
Greetings All, Whenever I study code generated by seasoned programmers (i.e. all the Adobe people supporting Flex on this list) as well as countless others on this list, I notice that some use this when referencing local variables contained within a Class. The last thing I want to do here, is

Re: [flexcoders] General list consensus using 'this' when referencing local vars

2008-04-08 Thread Bjorn Schultheiss
drop the 'this' unless its necessary to explain something.. On 08/04/2008, at 5:39 PM, Mike Anderson wrote: Greetings All, Whenever I study code generated by seasoned programmers (i.e. all the Adobe people supporting Flex on this list) as well as countless others on this list, I notice

Re: [flexcoders] General list consensus using 'this' when referencing local vars

2008-04-08 Thread Christian
I personally prefer to use it, as it makes it clearer for me later when I come back as to what is a class member/function and what is in the local/global scope. I say use which one you prefer. I came from a java background, and I remember always using 'this' with java classes. But that's just my 2

Re: [flexcoders] General list consensus using 'this' when referencing local vars

2008-04-08 Thread shaun
Mike Anderson wrote: Greetings All, Whenever I study code generated by seasoned programmers (i.e. all the Adobe people supporting Flex on this list) as well as countless others on this list, I notice that some use this when referencing local variables contained within a Class. The last

Re: [flexcoders] General list consensus using 'this' when referencing local vars

2008-04-08 Thread Giles Roadnight
ctrl - space? On Tue, Apr 8, 2008 at 10:55 AM, Scott Melby [EMAIL PROTECTED] wrote: I am not a big fan of the this, but it is the way I get flexbuilder to offer code assistance so I don't have to remember and type out the names of the methods and member variables of my class. So... it

Re: [flexcoders] General list consensus using 'this' when referencing local vars

2008-04-08 Thread Scott Melby
I am not a big fan of the this, but it is the way I get flexbuilder to offer code assistance so I don't have to remember and type out the names of the methods and member variables of my class. So... it frequently ends up staying in the code. If there were a hot-key sequence that produced the

Re: [flexcoders] General list consensus using 'this' when referencing local vars

2008-04-08 Thread Scott Melby
A great practice is to put a prefix on member variables to avoid exactly what Shaun is talking about. I typically use an underscore as follows. This completely eliminates the need for the this even for readability sake. Additionally I pretty much use only private members. If I want to

Re: [flexcoders] General list consensus using 'this' when referencing local vars

2008-04-08 Thread Scott Melby
NICE... actually that is even better since it includes locals as well as members etc. Guess I should have said If I knew of a hot-key sequence :) Thanks! Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://blog.fastlanesw.com Giles Roadnight wrote: ctrl -