Re: [Flashcoders] Freelancer Class

2006-11-08 Thread Cedric Muller
To: Flashcoders mailing list Subject: RE: [Flashcoders] Freelancer Class I don't know if it's a remnant. You may be doing property initialization and need to nail down scope: class Student { private var name:String function Student( name:String ) { this.name = name; } } That's just bad

Re: [Flashcoders] Freelancer Class

2006-11-08 Thread Alias™
Unless You are passing a function into a newly created object and need to explicityle refer to the object that it is passed into. ..inside class var myFunction:Function = new Function(){ this.a = 2; this.b = 5; this.c = this.a + this.b; } var newObj = new Object();

RE: [Flashcoders] Freelancer Class

2006-11-08 Thread jim
] On Behalf Of Steven Sacks | BLITZ Sent: 07 November 2006 19:29 To: Flashcoders mailing list Subject: RE: [Flashcoders] Freelancer Class I know I don't have to. But I think the code is more clear that way. Classes will not compile if you try to access variables that are not declared in the class. So

Re: [Flashcoders] Freelancer Class

2006-11-08 Thread Ian Thomas
Sometimes I really wish the language enforced a particular way of naming methods and properties; if only because then we wouldn't have exactly the same conversation posted on this list every couple of months. :-) Ian On 11/8/06, jim [EMAIL PROTECTED] wrote: I prefer having the this. On the

RE: [Flashcoders] Freelancer Class

2006-11-08 Thread jim
Looks like I joined this argument a bit late, sorry for rehashing the same points. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jim Sent: 08 November 2006 13:08 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Freelancer Class I prefer

RE: [Flashcoders] Freelancer Class

2006-11-08 Thread jim
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: 07 November 2006 20:05 To: Flashcoders mailing list Subject: RE: [Flashcoders] Freelancer Class I don't know if it's a remnant. You may be doing property initialization and need to nail down scope: class Student

RE: [Flashcoders] Freelancer Class

2006-11-08 Thread jim
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: 08 November 2006 13:11 To: Flashcoders mailing list Subject: Re: [Flashcoders] Freelancer Class Sometimes I really wish the language enforced a particular way of naming methods and properties; if only because then we

Re: [Flashcoders] Freelancer Class

2006-11-08 Thread Ian Thomas
Hi Jim, Not target at you particularly; just that as I say, every couple of months the same thing rolls by. :-) Anyway; I'm just adding noise, so I'll shut up now. Ian On 11/8/06, jim [EMAIL PROTECTED] wrote: Yeah, I joined the conversation late. I have a habit of not reading mail for a few

RE: [Flashcoders] Freelancer Class

2006-11-08 Thread Steven Sacks | BLITZ
I don't like anything that puts arbitrary constraints on my code. Ruby on Rails has fantastic naming conventions but they have very clear benefits. Also, they use @foo for instance variable names and @@foo for class variable names. Unfortunately, they don't use braces to contain functions and

RE: [Flashcoders] Freelancer Class

2006-11-08 Thread Mike Keesey
-Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Dennis Roche Sent: Tuesday, November 07, 2006 10:47 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Freelancer Class I prefer the the double underscore naming scheme

Re: [Flashcoders] Freelancer Class

2006-11-07 Thread JulianG
I know I don't have to. But I think the code is more clear that way. Thanks, JulianG Rich Rodecker wrote: you know you dont have to reference 'this' inside the class, right? :D ___ Flashcoders@chattyfig.figleaf.com To change your subscription

Re: [Flashcoders] Freelancer Class

2006-11-07 Thread slangeberg
I don't know if it's a remnant. You may be doing property initialization and need to nail down scope: class Student { private var name:String function Student( name:String ) { this.name = name; } } -Scott On 11/7/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote: I know I don't have to.

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Steven Sacks | BLITZ
I don't know if it's a remnant. You may be doing property initialization and need to nail down scope: class Student { private var name:String function Student( name:String ) { this.name = name; } } That's just bad coding. Don't use class variable names as argument names. It's

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Mike Keesey
-Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Tuesday, November 07, 2006 12:05 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Freelancer Class I don't know if it's a remnant. You may

Re: [Flashcoders] Freelancer Class

2006-11-07 Thread slangeberg
. Scott On 11/7/06, Mike Keesey [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Tuesday, November 07, 2006 12:05 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Freelancer

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Steven Sacks | BLITZ
Pretty much. You either muddy up your code or your docs. I opt to muddy up docs over code, just like Macromedia. ;) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Mike Keesey
] On Behalf Of Steven Sacks | BLITZ Sent: Tuesday, November 07, 2006 1:34 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Freelancer Class Pretty much. You either muddy up your code or your docs. I opt to muddy up docs over code, just like Macromedia

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Sönke Rohde
I don't know if it's a remnant. You may be doing property initialization and need to nail down scope: class Student { private var name:String function Student( name:String ) { this.name = name; } } That's just bad coding. Don't use class variable names as

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Steven Sacks | BLITZ
I shouldn't have used the term bad to describe these practices and for that I apologize. My eyes see all those extra this references as clutter and some people's eyes see them as useful pointers. I don't use document writing programs like AsDoc or Jdoc so the concerns of people who do are

RE: [Flashcoders] Freelancer Class

2006-11-07 Thread Steven Sacks | BLITZ
They (now Adobe) have pretty much done an about-face on this issue. The ActionScript 3.0 documentation (http://livedocs.macromedia.com/flex/2/langref/ ) is excellent. Macromedia's AS docs were (in)famously bad due to what many considered to be poor examples and they also had many errors. I

Re: [Flashcoders] Freelancer Class

2006-11-07 Thread Dennis Roche
On 08/11/06, Mike Keesey [EMAIL PROTECTED] wrote: That's just bad coding. Don't use class variable names as argument names. It's not like you don't have a choice about it. ;) I don't think it's bad coding. Documentation generated from this signature might be a bit clearer than

RE: [Flashcoders] Freelancer Class

2006-11-06 Thread Steven Sacks | BLITZ
Project 3:16 - For Client so loved the work, that he told his one and only Developer, that whosoever listens to him shall not finish, but have eternal changes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the