On the contrary, if you read past the introduction of that page, the first paragraph states that the variants are called UpperCamelCase and lowerCamelCase and that some groups map the name camel case only to lowerCamelCase and refer to UpperCamelCase as PascalCase.
That said, I call them Upper and lower CamelCase. Also, the teams I am on at BBN practice UpperCamelCase for classes lowerCamelCase for methods/instance variables CAPS_AND_UNDERSCORES for enumerations and constants. oh, and lowercase.with.dots for package names.
this is pretty much generational -- the old C programmers like lower_case_syntax, whereas newer C++/Java/Hungarian folks preferItThisWay OrEvenThisWay. i happen to belong to the former camp.
Aren't "easier to read" and "painful to look at" almost, if not quite, mutually exclusive? In my case, the underscores draw my eye down at the end of each word, making it feel like it takes a lot longer to read and interpret. I-would-think-hyphens-would-be-both-easier-to-type-and-easier-to-read.
Nope. "Easy to read" is "I can tell words apart easier by using them," "painful to look at" is "not really aesthetically pleasing." One is form, one is function.
Hyphens are harder to read. The dash being in the middle of the vertical space reads as part of the word and not a separator, to my mind at least.
Underscores may be easier to read, but...
Date: 2008-01-29 02:35 pm (UTC)Re: Underscores may be easier to read, but...
Date: 2008-01-29 02:42 pm (UTC)Re: Underscores may be easier to read, but...
Date: 2008-01-29 03:02 pm (UTC)(no subject)
Date: 2008-01-29 03:02 pm (UTC)(no subject)
Date: 2008-01-29 03:03 pm (UTC)I alternate between them: in most languages, I use PascalCase to handle classes/methods and then camelCase for parameters/variables.
Underscores and CAPITAL_LETTERS are what I use for constants.
(no subject)
Date: 2008-01-29 03:06 pm (UTC)(no subject)
Date: 2008-01-29 06:45 pm (UTC)That said, I call them Upper and lower CamelCase. Also, the teams I am on at BBN practice
UpperCamelCase for classes
lowerCamelCase for methods/instance variables
CAPS_AND_UNDERSCORES for enumerations and constants.
oh, and lowercase.with.dots for package names.
(no subject)
Date: 2008-01-29 03:41 pm (UTC)(no subject)
Date: 2008-01-29 03:42 pm (UTC)(no subject)
Date: 2008-01-29 04:12 pm (UTC)this is pretty much generational -- the old C programmers like lower_case_syntax, whereas newer C++/Java/Hungarian folks preferItThisWay OrEvenThisWay. i happen to belong to the former camp.
-- sven
(no subject)
Date: 2008-01-29 06:49 pm (UTC)(no subject)
Date: 2008-01-29 07:04 pm (UTC)(no subject)
Date: 2008-01-29 09:38 pm (UTC)(no subject)
Date: 2008-01-30 02:42 am (UTC)(no subject)
Date: 2008-01-30 12:49 pm (UTC)Hyphens are harder to read. The dash being in the middle of the vertical space reads as part of the word and not a separator, to my mind at least.