> Just wondering if anyone has come up with a cf specific version
> of hungarian? I haven't found any references in the archives...
>
> In case you don't know what I am referring to, it is a naming
> convention for variables and more that originated at Microsoft.
There isn't a CF version of Hungarian notation of which I'm aware.
I'd guess that the reason for this is CF's very loosely typed variables;
it's not quite as important to associate a variable with a specific data
type. This was especially true in earlier versions of CF, where you pretty
much just had strings.
Now that CF is a bit more complex, though, it's more useful to use
type-specific variable names. Allaire has a basic standard for variable
naming, which they use in their training materials and within Spectra code:
q: Query
a: Array
st: Structure
l: List (although, of course, any string can be treated as a list)
r: Return code
r_: Return code result
w: WDDX packet
b: Boolean
You'll note that this doesn't cover any differentiation between the
different things you might store within strings in CF, such as integers,
floats, etcetera.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists