> > 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/