Re: [OT?] Coding Style

Kai Henningsen
2001-01-25T15:01:26Z

mharrold@cas.org (Mike Harrold) wrote on 23.01.01 in <200101231600.LAA24562@mah21awu.cas.org>:

> > I prefer descriptive variable and function names - like comments, they
> > help to make code so much easier to read.
> >
> > One thing I wonder though... why do people prefer 'some_function_name()'
> > over 'SomeFunctionName()'? I personally don't like the underscore
> > character - it's an odd character to type when you're trying to get the
> > name typed in, and the shifted character, I find, is easier to input.
> >
>
> For exactly the reverse of that reason. Typing capital letters is a heck
> of a lot more difficult that addint an underscore.

(shift)+(-_) is a lot more more difficult than (shift)+(A)?

Or do you have a keyboard layout where _ is not a shifted key?

> Then there is reasability.
>
> void ThisIsMyDumbassFunctionName
>
> if MUCH more difficult to read than
>
> void this_is_my_clear_and_easy_function_name

I can certainly read the first easier than the second.

MfG Kai