[Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Stephen Matthews
Hi, I am working with Martin Legris's great Youtube API class and  
wondered what this was

( _data.gd$rating )
What does the dollar symbol do?
Here is a link to the particular class-
http://as3-youtube-data-api.googlecode.com/svn/trunk/ca/newcommerce/youtube/data/VideoData.as
This is the getter-
public function get rating():RatingData
{
return new RatingData(_data.gd$rating);
}

PS I looked at Adobe's online help but could not find a reference to it.
Thanks Steve
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Sidney de Koning

Hi Steve,

It is just a way of naming variables. The Adobe docs say this about it:

Variable names can only contain letters, numbers, and dollar signs  
($). Do not begin variable names with numbers. Variables must be  
unique and they are case-sensitive in Flash Player 7 and later. 


If you look further in his code you see he also uses it for the  
comments:

_data.gd$comments
_data.gd$comments.gd$feedLink
_data.gd$comments.gd$feedLink.countHint

Hope this helps you,

Sid

On May 5, 2009, at 10:42 AM, Stephen Matthews wrote:

Hi, I am working with Martin Legris's great Youtube API class and  
wondered what this was

( _data.gd$rating )
What does the dollar symbol do?
Here is a link to the particular class-
http://as3-youtube-data-api.googlecode.com/svn/trunk/ca/newcommerce/youtube/data/VideoData.as
This is the getter-
public function get rating():RatingData
{
return new RatingData(_data.gd$rating);
}

PS I looked at Adobe's online help but could not find a reference to  
it.

Thanks Steve
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Sidney de Koning - be a geek, in rockstar style!
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Muzak

What does the dollar symbol do?


It shows that the developer broke the underscore key on his keyboard :)
And that he's most likely a PHP developer.. or both.

gd$rating -- gdRating -- gd_rating

And I assume gd stands for Google Data -- Google Data API
http://code.google.com/intl/nl-BE/apis/gdata/overview.html

gd is also a namespace in the GData XML in the YouTube Data API
http://code.google.com/intl/nl-BE/apis/youtube/2.0/reference.html#GData_elements_reference


- Original Message - 
From: Stephen Matthews st...@gingerman.co.uk

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, May 05, 2009 10:42 AM
Subject: [Flashcoders] What's the dollar symbol for?


Hi, I am working with Martin Legris's great Youtube API class and  
wondered what this was

( _data.gd$rating )
What does the dollar symbol do?
Here is a link to the particular class-
http://as3-youtube-data-api.googlecode.com/svn/trunk/ca/newcommerce/youtube/data/VideoData.as
This is the getter-
public function get rating():RatingData
{
return new RatingData(_data.gd$rating);
}

PS I looked at Adobe's online help but could not find a reference to it.
Thanks Steve


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Glen Pike
I have seen people using the $ symbol in ActionScript to denote 
private variables, but this does not seem to be the case...


Agree with Muzak - probably a confused PHP developer, at least they are 
not trying the transition from Basic (can't wait to see those comparison 
vs assignment bugs :))


Muzak wrote:

What does the dollar symbol do?


It shows that the developer broke the underscore key on his keyboard :)
And that he's most likely a PHP developer.. or both.

gd$rating -- gdRating -- gd_rating

And I assume gd stands for Google Data -- Google Data API
http://code.google.com/intl/nl-BE/apis/gdata/overview.html

gd is also a namespace in the GData XML in the YouTube Data API
http://code.google.com/intl/nl-BE/apis/youtube/2.0/reference.html#GData_elements_reference 




- Original Message - From: Stephen Matthews 
st...@gingerman.co.uk

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, May 05, 2009 10:42 AM
Subject: [Flashcoders] What's the dollar symbol for?


Hi, I am working with Martin Legris's great Youtube API class and  
wondered what this was

( _data.gd$rating )
What does the dollar symbol do?
Here is a link to the particular class-
http://as3-youtube-data-api.googlecode.com/svn/trunk/ca/newcommerce/youtube/data/VideoData.as 


This is the getter-
public function get rating():RatingData
{
return new RatingData(_data.gd$rating);
}

PS I looked at Adobe's online help but could not find a reference to it.
Thanks Steve


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Ivan Dembicki
Hello,

http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions#CodingConventions-Property(variableandgetter%2Fsetter)names

and you can find other $ symbols in this document.

-- 
iv
http://www.bezier.ru
http://bezier.googlecode.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Glen Pike

Ivan Dembicki wrote:

Hello,

http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions#CodingConventions-Property(variableandgetter%2Fsetter)names

and you can find other $ symbols in this document.

  

That's the one!!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Muzak

Not really..
The guidelines specify to prepend a getter/setter with a dollar sign if it 
overrides an inherited getter/setter.

quote
If a class overrides a getter/setter and wants to continue to expose the base getter/setter, it should do so by implementing a 
property whose name is the base name with a $ prepended. This getter/setter should be marked final and should do nothing more than 
call the supergetter/setter.

/quote

gd$comments
gd$rating
gd$feedLink

AFAIK, those have nothing to do with that.
If they did, they would be:

$gdComments
$gdRating
$gdFeedLink

indicating overriding inherited properties: gdComments, gdRating, gdFeedLink

Again, my guess is they want to indicate they represent the GData API xml ellements which 
use the gd namespace.
http://code.google.com/intl/nl-BE/apis/youtube/2.0/reference.html#GData_elements_reference

I haven't looked at the YouTube API at all by the way, so I'm just guessing :)

regards,
Muzak

- Original Message - 
From: Ivan Dembicki ivan.dembi...@gmail.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, May 05, 2009 1:35 PM
Subject: Re: [Flashcoders] What's the dollar symbol for?



Hello,

http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions#CodingConventions-Property(variableandgetter%2Fsetter)names

and you can find other $ symbols in this document.

--


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Kenneth Kawamoto
I always thought $ stands for scaler, which is basically a variable 
in PERL, which PHP inherited (PHP was originally a PERL module ?)


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Muzak wrote:

What does the dollar symbol do?


It shows that the developer broke the underscore key on his keyboard :)
And that he's most likely a PHP developer.. or both.

gd$rating -- gdRating -- gd_rating

And I assume gd stands for Google Data -- Google Data API
http://code.google.com/intl/nl-BE/apis/gdata/overview.html

gd is also a namespace in the GData XML in the YouTube Data API
http://code.google.com/intl/nl-BE/apis/youtube/2.0/reference.html#GData_elements_reference 




- Original Message - From: Stephen Matthews 
st...@gingerman.co.uk

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, May 05, 2009 10:42 AM
Subject: [Flashcoders] What's the dollar symbol for?


Hi, I am working with Martin Legris's great Youtube API class and  
wondered what this was

( _data.gd$rating )
What does the dollar symbol do?
Here is a link to the particular class-
http://as3-youtube-data-api.googlecode.com/svn/trunk/ca/newcommerce/youtube/data/VideoData.as 


This is the getter-
public function get rating():RatingData
{
return new RatingData(_data.gd$rating);
}

PS I looked at Adobe's online help but could not find a reference to it.
Thanks Steve

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Dave Watts
 (PHP was originally a PERL module ?)

I don't think that is correct. PHP was initially released as a binary,
or as source that would compile to a binary, implementing the CGI API.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What's the dollar symbol for?

2009-05-05 Thread Kenneth Kawamoto

Yes you are right, Dave.

Lerdorf initially created these Personal Home Page Tools [in C] to 
replace a small set of Perl scripts he had been using to maintain his 
personal homepage. - Wikipedia


Kenneth Kawamoto
http://www.materiaprima.co.uk/

Dave Watts wrote:

(PHP was originally a PERL module ?)


I don't think that is correct. PHP was initially released as a binary,
or as source that would compile to a binary, implementing the CGI API.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders