Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: variable names: camel case or underscores? (even more o.t.)

Author: Omid David Tabibi

Date: 08:08:29 03/05/04

Go up one level in this thread


On March 05, 2004 at 10:44:49, Roberto Nerici wrote:

>>When we are at it, why does almost everyone today uses camel case for namnig
>>variables?
>>
>>doYouThinkThatCamelCaseIsEasierForReading
>>or_maybe_using_underscores_is_more_readable ?!
>>
>>The coding conventions of Windows API, MFC, Java, C# all use camel case for
>>variables. STL is the only place where I can see underscores used.
>
>If you're using hungarian notation, you're probably already starting variables
>with a lower case letter...
>
>I always used to use CapitalisedWords for variables and words_with_underscores
>for functions. But I tend to use the former for everything now. Don't know
>why... shorter?

But isn't it easier to read underscored variables? Compare these two:

variableUsingCamelCaseNamingStartsWithLowerCase
variable_using_underscores_to_seperate_its_parts

Is it only me that has an easier time reading the latter?



>
>Roberto/.



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.