I always use uppercase on functions and methods, and lowercase on variables.
I think I get this from an old C or C++ language convention. However, I have
never seen any javascript that does anything but lowercase for the first
letter of method names and of course js is case sensitive so it matters.
Programming for the web, I'd guess that was a good convention to stick with
- I just can't kick my old habits ;)

Dominic


On 17/02/2008, Barney Boisvert <[EMAIL PROTECTED]> wrote:
>
> At least with the conventions of the languages I'm familiar with, you
> use a lower case first letter on your identifiers, unless the
> identifier is a type (class or interface) name.  Other identifiers
> (local variables, instance variables, functions, methods, etc.)
> usually start with a lower-case letter.  So you'd have a User CFC,
> with a getUsername method.
>
> That's just convention, of course - the language doesn't care.  And
> with CF's lack of case sensitivity in most cases (though not every
> case), it rarely matters.  I'd definitely recommend consistent casing,
> however.
>
> cheers,
> barneyb
>
> On Feb 17, 2008 1:15 PM, Jim McAtee <[EMAIL PROTECTED]> wrote:
> > I see a lot of CF code being posted using the convention of starting CF
> > function names, both built-in and user-defined, with a lower case
> letter.
> > While the CF8 docs continue to use the convention of beginning function
> > names with upper case letters.  Is there any significance or practical
> > reason for the initial lower case naming convention?
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299236
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to