Computer Chess Club Archives


Search

Terms

Messages

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

Author: Russell Reagan

Date: 09:39:07 03/05/04

Go up one level in this thread


On March 05, 2004 at 09:52:37, Omid David Tabibi 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.

I agree with you. Underscores make it much easier to read. I use them. IMO
readability of your code is more important than how fast you can type the code
by saving a few keystrokes. I would prefer a long variable or function name with
underscores over some short abbreviated name any day. I like to read my code,
not decode my code :)



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.