The Scoop on Scoping

I did a presentation called "The Scoop on Scoping" and it's high time I post it here. It has a lot of good information, however, if you don't plan to read it, let me at least give you the Golden Rule of ColdFusion Scoping:

Scope all references to all variables all the time (where ColdFusion allows it)

In ColdFusion 9, with the introduction of the "Local" keyword to identify the function local scope, there really won't be any good excuse to not refer to scopes by name all the time and so that "(where ColdFusion allows it)" part can pretty much go away. :)

The PDF version of the presentation is available via this link.

Jose Galdamez's Gravatar I recently started writing out scopes in all caps just like it's done in the CF WACK books.


It helps me keep scopes apart from other custom structures.

I know it's mostly a matter of preference, but I'm curious if you've come across strong opinions against this style?
# Posted By Jose Galdamez | 8/27/09 2:55 PM
Rudi Shumpert's Gravatar Josh! Great presentation. I could not agree more on scopes.
# Posted By Rudi Shumpert | 8/27/09 3:20 PM
Führerschein kaufen's Gravatar
# Posted By Führerschein kaufen | 11/4/23 8:12 PM
Kjøp førerkort's Gravatar
# Posted By Kjøp førerkort | 11/4/23 8:22 PM
Köpa körkort's Gravatar What a nice post! I'm so happy to read this. What you wrote was very helpful to me. Thank you. Actually, I run a site similar to yours. If you have time, could you visit my site? Please leave your comments after reading what I wrote. If you do so, I will actively reflect your opinion. I think it will be a great help to run my site. Have a good day. Köpa körkort Køb kørekort Comprare patente Kjøp førerkort Führerschein kaufen
# Posted By Köpa körkort | 11/4/23 8:25 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner