Troy,

I use it all of the time. After working with PB for 6 years (since 2.0), it
was just a natural naming convention for me.

I used to preach it in the classes that I taught for Allaire.

Rey...
Certified Allaire Instructor
Member of Team Allaire

"A browser's beauty, at its heart, is its usefulness as a *TOOL*."

----- Original Message -----
From: "Troy Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 19, 2000 11:03 AM
Subject: RE: Variable Scope??


> Brings up an interesting point.  During my tenure of client-server
> development (VB,PowerBuilder,C) we always prefixed our variables with
scope
> and type.  For example, ls_name would be a "local" variable of type
> "string".  However, in all the cf-talk threads, and books I rarely noticed
> this technique used.  Is there a reason for this?  The type may not be as
> useful, but the scope prefix would seem to eleviate the problem of
multiple
> scoped variables with the same name.
>
> Any thoughts on this?
>
> -----Original Message-----
> From: Stephen Moretti [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 19, 2000 3:47 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Variable Scope??
>
>
> >
> > Is there places that you do not want to scope variables? In other words,
> > it's very good practice to scope all your variables. Is there any places
> > that scoped variables would not work?
> >
>
> Hi Kevin,
>
> All variables are scoped whether you like it or not.
> Doing  <cfset myvar = "xyz"> will create that variable in the scope
> 'variables'.
>
> Scoped variables only really stop working when you have variables with the
> same name in different scopes and you as the programmer aren't explicit
> about which variable from which scope you want to use.  It can get really
> confusing if you're not careful...
>
> Never happened to me.. Honest Guv! ;o)
>
> Regards
>
> Stephen
>
> --------------------------------------------------------------------------
--
> --
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body...
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to