etherial: St. Basil's Cathedral, Moscow (St. Basil's)
[personal profile] etherial
[Poll #1129374]

Underscores may be easier to read, but...

Date: 2008-01-29 02:35 pm (UTC)
From: [identity profile] anitra.livejournal.com
I still use CamelCase. It's easier to type than using lots of underscores.

Re: Underscores may be easier to read, but...

Date: 2008-01-29 02:42 pm (UTC)
From: [identity profile] etherial.livejournal.com
See, I find underscores painful to look at.

Re: Underscores may be easier to read, but...

Date: 2008-01-29 03:02 pm (UTC)
From: [identity profile] rosinavs.livejournal.com
They are annoying to type, but they are easier to read than the others. I can still read the others just fine, though.

(no subject)

Date: 2008-01-29 03:02 pm (UTC)
From: [identity profile] nyren.livejournal.com
MY.WORKPLACE.USES.dots.and.capitalization

(no subject)

Date: 2008-01-29 03:03 pm (UTC)
From: [identity profile] aleksandyr.livejournal.com
thisIsCamelCase, ThisIsPascalCase. :)

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 06:45 pm (UTC)
From: [identity profile] nerdx111.livejournal.com
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.

(no subject)

Date: 2008-01-29 03:41 pm (UTC)
From: (Anonymous)
I prefer underscores_all_lowercase, although I do use BumpyCase for the names of classes.

(no subject)

Date: 2008-01-29 03:42 pm (UTC)
From: [identity profile] agthorr.livejournal.com
That was me. Why can't LJ keep me logged in?

(no subject)

Date: 2008-01-29 04:12 pm (UTC)
From: [identity profile] stillking.livejournal.com

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)
From: [identity profile] neuromancerzss.livejournal.com
Readability is not the only measure of a naming convention, though it does seem like your point was actually specifically about readability.

(no subject)

Date: 2008-01-29 07:04 pm (UTC)
From: [identity profile] londo.livejournal.com
I used to use camelCase, but sometime in the past couple years switched to with_underscores without any observable stimulus.

(no subject)

Date: 2008-01-29 09:38 pm (UTC)
From: [identity profile] juldea.livejournal.com
Underscores are easier to read, but I admit they're painful to look at and type.

(no subject)

Date: 2008-01-30 02:42 am (UTC)
From: [identity profile] etherial.livejournal.com
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.

(no subject)

Date: 2008-01-30 12:49 pm (UTC)
From: [identity profile] juldea.livejournal.com
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.