Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 47247 invoked from network); 3 Jan 2001 00:29:34 -0000 Received: from cortex-gw.magna.com.au (HELO smtp.cortexebusiness.com.au) (203.174.140.214) by h31.sny.collab.net with SMTP; 3 Jan 2001 00:29:34 -0000 Received: (from daemon@localhost) by smtp.cortexebusiness.com.au (8.10.0/8.10.0) id f030Tcd02755; Wed, 3 Jan 2001 11:29:38 +1100 (EST) Received: from UNKNOWN(192.168.1.8), claiming to be "monkey.prod.thespot.com.au" via SMTP by ripley, id smtpdAAAA0aOuf; Wed Jan 3 11:29:29 2001 Received: (from daemon@localhost) by monkey.prod.thespot.com.au (8.10.0/8.10.0) id f030TTJ27751; Wed, 3 Jan 2001 11:29:29 +1100 (EST) Received: from UNKNOWN(192.168.1.9), claiming to be "chunky.devl.ebinteractive.com.au" via SMTP by monkey, id smtpdAAA.vaam2; Wed Jan 3 11:29:19 2001 Received: from snotty (snotty.devl.ebinteractive.com.au [192.168.1.32]) by chunky.devl.ebinteractive.com.au (8.10.0/8.10.0) with SMTP id f030TEB00717; Wed, 3 Jan 2001 11:29:14 +1100 (EST) From: "Conor MacNeill" To: Cc: Subject: RE: Additions changes to the taskdefs. Date: Wed, 3 Jan 2001 11:29:50 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Martin, > Now a coding question : > > In some (didn't check them all btw). The init of an instance variable is > done with this.Blabla = "bla"; > Only in the code this.Blabla is never used, only Blabla (it works > I know..). > Is it just my horrible view on programming or it "nicer/neater" to use > this.Blabla anywhere to reference the instance variable? > (I'm using a lot of the same variable names (bad in thinking one > up, and the > dummy1, dummy2 isn't very descriptive) and using the this. is pretty nice > then). > Let me know what you're opinion about this is.. > Ahh, love those style questions. My personal preferences: I tend to use this.blah only when blah by itself would be ambiguous. This is usually the case in the setter for blah and perhaps a constructor in which a value for blah is passed. It saves me thinking up new variable names which are usually contrived; something like aBlah, theBlah, newBlah, _blah, etc. I don't like the use of this.blah everywhere. When I am reading the code for an object (class), I like to "live" in it, to assume its context and this.blah just becomes distracting. Nor do I like the use of _blah to distinguish private fields but some would disagree (Simeon?). Your religion may vary. Conor