On Wed, Sep 17, 2008 at 5:32 PM, Sammy Larbi <[EMAIL PROTECTED]> wrote:

>
>
> On Wed, Sep 17, 2008 at 11:27 AM, Oscar Arevalo <[EMAIL PROTECTED]>wrote:
>
>> yes, "people" denotes a collection, but what type of collection is it? an
>> array? a query? a list? a structure of CFCs indexed by the personID? yes,
>> you can follow the trail on the code to find out what the exact data type
>> is, but I have found that using a little prefix for the data type helps
>> giving some clarity to the code; In other words, use variable names like
>> "qryPeople" (query), "aPeople" (array), "stPeople" (struct) or whatever
>> convention is adopted on your environment.
>>
>>
>
> On the other hand, normally there is very little traversal required, and
> context clues like "cfloop query=" provide all the help I need.
>
> Of course, if the code is so bad that you actually do have to roam around
> to find a type (enough to where it affects you), then I'd much rather spend
> that time fixing the code than bandaging it.
>
> That's just me though. Everyone is free to have differing opinions. =)
>
> Sam
>
>

I thought I'll add that if a type does make its way into the variable name,
I'd put it at the end. Putting it at the beginning is clutterful,
distracting, and gets the importance backwards.

Sam

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to