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.
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 lett
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
3 matches
Mail list logo