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.

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

ATTRIBUTES.filePath
VARIABLES.rssStruct
etc.

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
gregorie's Gravatar In my opinion, you should post this on Instagram! Get more followers and visit this <a href="https://create.piktochart.com/output/32396634-free...;
# Posted By gregorie | 9/26/18 8:34 AM
free solitaire's Gravatar There are the great post here must be players have to like to join it and getting the high score in spider solitaire card game so must be have to getting full fun.
# Posted By free solitaire | 10/26/18 4:04 AM
Dakota McGregor's Gravatar You have chosen the topic which is my favorite one and most best of the scoops from the interfere of the scoping. Some fusions of the scooping by the direct fairs of the https://bestbritishwriter.com/essaytigers-co-uk-re... website to other websites want much regulating for the functional references.
# Posted By Dakota McGregor | 11/3/18 2:12 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.002. Contact Blog Owner