IMO it's not about anything being 'given away'...it's about
self-documentation (Mike D. already made that point tho).

Some people prefix arrays with arr_ or ar_, structures with st_, etc.  well,
when you see:

<cfscript>
    arr_myArray = arrayNew(1);
</cfscript>

you kind of know that myArray is an array when you see the arrayNew()
function after it  :)

It's just good habit so that you (or whoever comes after you once you get
hit by the proverbial bus or meteorite) can more easily understand your code
at any given point in the page, rather than have to trace the code back to a
variable declaration to determine its type.

That convention, I actually don't follow...but the tbl_ prefix on database
tables I do.

Different strokes.  Not 'wrong' or 'right' to do either, neither, or a
little of both.  But to answer the original question...yes, there are others
who (by their own choice or by corporate mandate) adhere to such standards
:)

----- Original Message -----
From: "JediHomer" <[EMAIL PROTECTED]>
To: "CF-Community" <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 8:48 AM
Subject: Re: database naming conventions

> The only prefixes in that respect that I use would be spr_ for sprocs...
>
> but even then the exec usually gives away the fact its a sproc
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to