* RE: [OT?] Coding Style
@ 2001-01-23 15:41 Jonathan Earle
2001-01-23 15:58 ` Larry McVoy
` (4 more replies)
0 siblings, 5 replies; 19+ messages in thread
From: Jonathan Earle @ 2001-01-23 15:41 UTC (permalink / raw)
To: Linux Kernel List
[-- Attachment #1: Type: text/plain, Size: 704 bytes --]
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.
Cheers!
Jon
> -----Original Message-----
> From: Steve Underwood [mailto:steveu@coppice.org]
Some people still seem to be living in the age of K&R C, with 6 or 7
character variable names that demand some explanation. Maybe some day
they will awake to the expressive power of long (and well chosen) names.
[-- Attachment #2: Type: text/html, Size: 1302 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 15:41 [OT?] Coding Style Jonathan Earle
@ 2001-01-23 15:58 ` Larry McVoy
2001-01-23 16:00 ` Mike Harrold
` (3 subsequent siblings)
4 siblings, 0 replies; 19+ messages in thread
From: Larry McVoy @ 2001-01-23 15:58 UTC (permalink / raw)
To: Jonathan Earle; +Cc: Linux Kernel List
On Tue, Jan 23, 2001 at 10:41:49AM -0500, Jonathan Earle wrote:
> 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.
I have a tendency to use class_functionName() where "class" represents a
class of related functions. They all tend to take a point to an instance
of that "class". So then you can read the code and see the "classes" in
the names.
And, this way, I can piss off both the anti underscore and the anti mixed case
people at the same time :-)
--
---
Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 15:41 [OT?] Coding Style Jonathan Earle
2001-01-23 15:58 ` Larry McVoy
@ 2001-01-23 16:00 ` Mike Harrold
2001-01-23 16:32 ` Joe deBlaquiere
` (2 more replies)
2001-01-23 16:14 ` Georg Nikodym
` (2 subsequent siblings)
4 siblings, 3 replies; 19+ messages in thread
From: Mike Harrold @ 2001-01-23 16:00 UTC (permalink / raw)
To: Jonathan Earle; +Cc: Linux Kernel List
>
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
>
> ------_=_NextPart_001_01C08552.FFC336D0
> Content-Type: text/plain;
> charset="ISO-8859-1"
>
> 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.
Then there is reasability.
void ThisIsMyDumbassFunctionName
if MUCH more difficult to read than
void this_is_my_clear_and_easy_function_name
Regards,
/Mike
> Cheers!
> Jon
>
> > -----Original Message-----
> > From: Steve Underwood [mailto:steveu@coppice.org]
>
> Some people still seem to be living in the age of K&R C, with 6 or 7
> character variable names that demand some explanation. Maybe some day
> they will awake to the expressive power of long (and well chosen) names.
>
> ------_=_NextPart_001_01C08552.FFC336D0
> Content-Type: text/html;
> charset="ISO-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
> charset=3DISO-8859-1">
> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
> 5.5.2652.35">
> <TITLE>RE: [OT?] Coding Style</TITLE>
> </HEAD>
> <BODY>
>
> <P><FONT SIZE=3D2>I prefer descriptive variable and function names - =
> like comments, they help to make code so much easier to read.</FONT>
> </P>
>
> <P><FONT SIZE=3D2>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.</FONT></P>
>
> <P><FONT SIZE=3D2>Cheers!</FONT>
> <BR><FONT SIZE=3D2>Jon</FONT>
> </P>
>
> <P><FONT SIZE=3D2>> -----Original Message-----</FONT>
> <BR><FONT SIZE=3D2>> From: Steve Underwood [<A =
> HREF=3D"mailto:steveu@coppice.org">mailto:steveu@coppice.org</A>]</FONT>=
>
> </P>
>
> <P><FONT SIZE=3D2>Some people still seem to be living in the age of =
> K&R C, with 6 or 7</FONT>
> <BR><FONT SIZE=3D2>character variable names that demand some =
> explanation. Maybe some day</FONT>
> <BR><FONT SIZE=3D2>they will awake to the expressive power of long (and =
> well chosen) names.</FONT>
> </P>
>
> </BODY>
> </HTML>
> ------_=_NextPart_001_01C08552.FFC336D0--
> -
> 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/
>
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 15:41 [OT?] Coding Style Jonathan Earle
2001-01-23 15:58 ` Larry McVoy
2001-01-23 16:00 ` Mike Harrold
@ 2001-01-23 16:14 ` Georg Nikodym
2001-01-23 18:05 ` Christopher Friesen
` (2 more replies)
2001-01-23 17:42 ` John Kodis
2001-01-25 13:25 ` Kai Henningsen
4 siblings, 3 replies; 19+ messages in thread
From: Georg Nikodym @ 2001-01-23 16:14 UTC (permalink / raw)
To: Mike Harrold; +Cc: Jonathan Earle, Linux Kernel List
>>>>> "MH" == Mike Harrold <mharrold@cas.org> writes:
MH> For exactly the reverse of that reason. Typing capital letters is
MH> a heck of a lot more difficult that addint an underscore.
MH> Then there is reasability.
MH> void ThisIsMyDumbassFunctionName
MH> if MUCH more difficult to read than
MH> void this_is_my_clear_and_easy_function_name
I think that the distinction is moot and this argument a waste of
time. If you are anything more than a code tourist, you should have
no trouble dealing with mnemonic names. So the above can become:
/*
* timcaefn == this is my clear and easy function name
*/
void timcaefn (void);
If you're at all concerned about RSI, your fingers will thank you.
:-) :-) :-)
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 16:00 ` Mike Harrold
@ 2001-01-23 16:32 ` Joe deBlaquiere
2001-01-24 1:14 ` Steve Underwood
2001-01-24 5:42 ` Brent Rowland
2001-01-24 9:58 ` Completely offtopic : " Bernd Petrovitsch
2001-01-26 0:20 ` James Stevenson
2 siblings, 2 replies; 19+ messages in thread
From: Joe deBlaquiere @ 2001-01-23 16:32 UTC (permalink / raw)
To: Mike Harrold; +Cc: Jonathan Earle, Linux Kernel List
Too bad we can't just do a "Prince" and invent unpronouncable symbols to
use as function names... or perhaps just use something from the chinese
fonts ;o)...
Mike Harrold wrote:
>> This message is in MIME format. Since your mail reader does not understand
>> this format, some or all of this message may not be legible.
>>
>> ------_=_NextPart_001_01C08552.FFC336D0
>> Content-Type: text/plain;
>> charset="ISO-8859-1"
>>
>> 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.
>
> Then there is reasability.
>
> void ThisIsMyDumbassFunctionName
>
> if MUCH more difficult to read than
>
> void this_is_my_clear_and_easy_function_name
>
> Regards,
>
> /Mike
>
>
>> Cheers!
>> Jon
>>
>>
>>> -----Original Message-----
>>> From: Steve Underwood [mailto:steveu@coppice.org]
>>
>> Some people still seem to be living in the age of K&R C, with 6 or 7
>> character variable names that demand some explanation. Maybe some day
>> they will awake to the expressive power of long (and well chosen) names.
>>
>> ------_=_NextPart_001_01C08552.FFC336D0
>> Content-Type: text/html;
>> charset="ISO-8859-1"
>> Content-Transfer-Encoding: quoted-printable
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
>> <HTML>
>> <HEAD>
>> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
>> charset=3DISO-8859-1">
>> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
>> 5.5.2652.35">
>> <TITLE>RE: [OT?] Coding Style</TITLE>
>> </HEAD>
>> <BODY>
>>
>> <P><FONT SIZE=3D2>I prefer descriptive variable and function names - =
>> like comments, they help to make code so much easier to read.</FONT>
>> </P>
>>
>> <P><FONT SIZE=3D2>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.</FONT></P>
>>
>> <P><FONT SIZE=3D2>Cheers!</FONT>
>> <BR><FONT SIZE=3D2>Jon</FONT>
>> </P>
>>
>> <P><FONT SIZE=3D2>> -----Original Message-----</FONT>
>> <BR><FONT SIZE=3D2>> From: Steve Underwood [<A =
>> HREF=3D"mailto:steveu@coppice.org">mailto:steveu@coppice.org</A>]</FONT>=
>>
>> </P>
>>
>> <P><FONT SIZE=3D2>Some people still seem to be living in the age of =
>> K&R C, with 6 or 7</FONT>
>> <BR><FONT SIZE=3D2>character variable names that demand some =
>> explanation. Maybe some day</FONT>
>> <BR><FONT SIZE=3D2>they will awake to the expressive power of long (and =
>> well chosen) names.</FONT>
>> </P>
>>
>> </BODY>
>> </HTML>
>> ------_=_NextPart_001_01C08552.FFC336D0--
>> -
>> 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/
>>
>
>
> -
> 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/
--
Joe deBlaquiere
Red Hat, Inc.
307 Wynn Drive
Huntsville AL, 35805
voice : (256)-704-9200
fax : (256)-837-3839
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 15:41 [OT?] Coding Style Jonathan Earle
` (2 preceding siblings ...)
2001-01-23 16:14 ` Georg Nikodym
@ 2001-01-23 17:42 ` John Kodis
2001-01-25 13:38 ` Kai Henningsen
2001-01-25 13:25 ` Kai Henningsen
4 siblings, 1 reply; 19+ messages in thread
From: John Kodis @ 2001-01-23 17:42 UTC (permalink / raw)
To: Linux Kernel List
On Tue, Jan 23, 2001 at 10:41:49AM -0500, Jonathan Earle wrote:
> One thing I wonder though... why do people prefer 'some_function_name()'
> over 'SomeFunctionName()'?
i_would_assume_that_it_is_because_the_underscore_serves_the_same_word-
seperation_role_that_a_space_does_in_normal_prose. RunningWordsAll
Together(OrShouldISay"ToGetHer"ForMaximumStudlyness)JustDoesNotParseAs
Readily, and that, rather that ease of typing is what counts.
--
John Kodis <kodis@acm.org>
Phone: 301-286-7376
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 16:14 ` Georg Nikodym
@ 2001-01-23 18:05 ` Christopher Friesen
2001-01-23 18:41 ` Mathieu Chouquet-Stringer
2001-01-23 18:44 ` Georg Nikodym
2001-01-23 18:53 ` James Kelly
2 siblings, 1 reply; 19+ messages in thread
From: Christopher Friesen @ 2001-01-23 18:05 UTC (permalink / raw)
To: georgn; +Cc: Linux Kernel List
Georg Nikodym wrote:
> I think that the distinction is moot and this argument a waste of
> time. If you are anything more than a code tourist, you should have
> no trouble dealing with mnemonic names. So the above can become:
>
> /*
> * timcaefn == this is my clear and easy function name
> */
> void timcaefn (void);
>
> If you're at all concerned about RSI, your fingers will thank you.
This is why the autocompletion of functions and struct members in VC++ is
awfully nice...hit the first few unique letters and it will complete the rest of
the function for you, then hit tab and keep going. Is there anything with that
functionality under Linux?
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 18:05 ` Christopher Friesen
@ 2001-01-23 18:41 ` Mathieu Chouquet-Stringer
0 siblings, 0 replies; 19+ messages in thread
From: Mathieu Chouquet-Stringer @ 2001-01-23 18:41 UTC (permalink / raw)
To: linux-kernel
cfriesen@nortelnetworks.com ("Christopher Friesen") writes:
> Georg Nikodym wrote:
>
> > I think that the distinction is moot and this argument a waste of
> > time. If you are anything more than a code tourist, you should have
> > no trouble dealing with mnemonic names. So the above can become:
> >
> > /*
> > * timcaefn == this is my clear and easy function name
> > */
> > void timcaefn (void);
> >
> > If you're at all concerned about RSI, your fingers will thank you.
>
> This is why the autocompletion of functions and struct members in VC++ is
> awfully nice...hit the first few unique letters and it will complete the rest of
> the function for you, then hit tab and keep going. Is there anything with that
> functionality under Linux?
Esc-/ under emacs...
--
Mathieu CHOUQUET-STRINGER E-Mail : mchouque@e-steel.com
Learning French is trivial: the word for horse is cheval, and
everything else follows in the same way.
-- Alan J. Perlis
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 16:14 ` Georg Nikodym
2001-01-23 18:05 ` Christopher Friesen
@ 2001-01-23 18:44 ` Georg Nikodym
2001-01-23 18:53 ` James Kelly
2 siblings, 0 replies; 19+ messages in thread
From: Georg Nikodym @ 2001-01-23 18:44 UTC (permalink / raw)
To: Christopher Friesen; +Cc: georgn, Linux Kernel List
>>>>> "CF" == Christopher Friesen <cfriesen@nortelnetworks.com> writes:
CF> This is why the autocompletion of functions and struct members in
CF> VC++ is awfully nice...hit the first few unique letters and it
CF> will complete the rest of the function for you, then hit tab and
CF> keep going. Is there anything with that functionality under
CF> Linux?
Yup. Emacs users can use the mis-named dynamic abbreviation function
(daddrev-expand which I have mapped to M-/).
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 16:14 ` Georg Nikodym
2001-01-23 18:05 ` Christopher Friesen
2001-01-23 18:44 ` Georg Nikodym
@ 2001-01-23 18:53 ` James Kelly
2 siblings, 0 replies; 19+ messages in thread
From: James Kelly @ 2001-01-23 18:53 UTC (permalink / raw)
To: Christopher Friesen, georgn; +Cc: Linux Kernel List
I am not sure about Linux IDEs, but when I programmed Objective-C using the
OpenStep IDE, you could not only do auto-completion on those, but on any
word that had been previously used. That was cool, and didn't cause wacky
problems like you might think it would (auto-completing words like the, to,
for, etc when trying to type something else).
JBuilder comes close, so I am guessing the Klyx will also. I sent an email
suggestion to Inprise, excuse me..Borland, on the subject last year. They
seemed to like it.
jk
At 01:05 PM 1/23/01 -0500, Christopher Friesen wrote:
>This is why the autocompletion of functions and struct members in VC++ is
>awfully nice...hit the first few unique letters and it will complete the
>rest of
>the function for you, then hit tab and keep going. Is there anything with
>that
>functionality under Linux?
>
>Chris
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 16:32 ` Joe deBlaquiere
@ 2001-01-24 1:14 ` Steve Underwood
2001-01-25 13:33 ` Kai Henningsen
2001-01-24 5:42 ` Brent Rowland
1 sibling, 1 reply; 19+ messages in thread
From: Steve Underwood @ 2001-01-24 1:14 UTC (permalink / raw)
To: Linux Kernel List
Unfortunately the C standards people don't seem to realise there are
languages other than English. C99 had perfect timing to introduce UTF8
Unicode as acceptable in C source. Alas they missed the boat. I have
been embedding Chinese in C source for years (mostly Big-5 - UTF8 is
more likely to be troublesome with existing compilers), and have yet to
hit a significant problem. It isn't standards compliant, though.
Regards,
Steve
Joe deBlaquiere wrote:
>
> Too bad we can't just do a "Prince" and invent unpronouncable symbols to
> use as function names... or perhaps just use something from the chinese
> fonts ;o)...
>
> Mike Harrold wrote:
>
> >> This message is in MIME format. Since your mail reader does not understand
> >> this format, some or all of this message may not be legible.
> >>
> >> ------_=_NextPart_001_01C08552.FFC336D0
> >> Content-Type: text/plain;
> >> charset="ISO-8859-1"
> >>
> >> 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.
> >
> > Then there is reasability.
> >
> > void ThisIsMyDumbassFunctionName
> >
> > if MUCH more difficult to read than
> >
> > void this_is_my_clear_and_easy_function_name
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 16:32 ` Joe deBlaquiere
2001-01-24 1:14 ` Steve Underwood
@ 2001-01-24 5:42 ` Brent Rowland
2001-01-24 5:50 ` Andre Hedrick
1 sibling, 1 reply; 19+ messages in thread
From: Brent Rowland @ 2001-01-24 5:42 UTC (permalink / raw)
To: Linux Kernel List
> Too bad we can't just do a "Prince" and invent unpronouncable symbols to
> use as function names... or perhaps just use something from the chinese
> fonts ;o)...
Sorry. You'll need to use Java if you want to use Unicode source.
Brent
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-24 5:42 ` Brent Rowland
@ 2001-01-24 5:50 ` Andre Hedrick
0 siblings, 0 replies; 19+ messages in thread
From: Andre Hedrick @ 2001-01-24 5:50 UTC (permalink / raw)
To: linux-kernel
Apologies first...
Would someone send me a way to filter mail?
I REALLY DO NOT GIVE A RATS ARSE ABOUT THIS OT!!
Like it or Leave it but whinning about it SUX!
Regard,
Cheif Whinner!
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Completely offtopic : [OT?] Coding Style
2001-01-23 16:00 ` Mike Harrold
2001-01-23 16:32 ` Joe deBlaquiere
@ 2001-01-24 9:58 ` Bernd Petrovitsch
2001-01-26 0:20 ` James Stevenson
2 siblings, 0 replies; 19+ messages in thread
From: Bernd Petrovitsch @ 2001-01-24 9:58 UTC (permalink / raw)
To: Linux Kernel List
[-- Attachment #1: Type: text/plain, Size: 666 bytes --]
In message <200101231600.LAA24562@mah21awu.cas.org>, Mike Harrold wrote:
>Then there is reasability.
>
> void ThisIsMyDumbassFunctionName
>
>if MUCH more difficult to read than
>
> void this_is_my_clear_and_easy_function_name
This may hold for English (or native English speakers, respectively)
but not for other languages (e.g. German) where capital letters quite
common.
[Fullquote deleted]
Bernd
--
Bernd Petrovitsch Email : bernd@gams.at
G.A.M.S GmbH Fax : +43 1 8958499-60
Stiegerg. 15-17/8 A-1150 Vienna/Austria/Europe
LUGA : http://www.luga.at
[-- Attachment #2: Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 15:41 [OT?] Coding Style Jonathan Earle
` (3 preceding siblings ...)
2001-01-23 17:42 ` John Kodis
@ 2001-01-25 13:25 ` Kai Henningsen
2001-01-25 19:30 ` Harald Arnesen
4 siblings, 1 reply; 19+ messages in thread
From: Kai Henningsen @ 2001-01-25 13:25 UTC (permalink / raw)
To: linux-kernel
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
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-24 1:14 ` Steve Underwood
@ 2001-01-25 13:33 ` Kai Henningsen
0 siblings, 0 replies; 19+ messages in thread
From: Kai Henningsen @ 2001-01-25 13:33 UTC (permalink / raw)
To: linux-kernel
steveu@coppice.org (Steve Underwood) wrote on 24.01.01 in <3A6E2C6E.632CDABF@coppice.org>:
> Unfortunately the C standards people don't seem to realise there are
> languages other than English. C99 had perfect timing to introduce UTF8
> Unicode as acceptable in C source. Alas they missed the boat. I have
> been embedding Chinese in C source for years (mostly Big-5 - UTF8 is
> more likely to be troublesome with existing compilers), and have yet to
> hit a significant problem. It isn't standards compliant, though.
Have you *READ* the C99 standard? According to my copy of ISO/IEC
9899:1999, chinese characters in identifiers are quite legal.
And the source is not defined to be UTF8 because C has never defined the
source to be any specific character set; if your character set does not
include the right characters, use \uXXXX or \Uxxxxxxxx.
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 17:42 ` John Kodis
@ 2001-01-25 13:38 ` Kai Henningsen
0 siblings, 0 replies; 19+ messages in thread
From: Kai Henningsen @ 2001-01-25 13:38 UTC (permalink / raw)
To: linux-kernel
kodis@mail630.gsfc.nasa.gov (John Kodis) wrote on 23.01.01 in <20010123124216.A30552@tux.gsfc.nasa.gov>:
> On Tue, Jan 23, 2001 at 10:41:49AM -0500, Jonathan Earle wrote:
>
> > One thing I wonder though... why do people prefer 'some_function_name()'
> > over 'SomeFunctionName()'?
>
> i_would_assume_that_it_is_because_the_underscore_serves_the_same_word-
> seperation_role_that_a_space_does_in_normal_prose. RunningWordsAll
> Together(OrShouldISay"ToGetHer"ForMaximumStudlyness)JustDoesNotParseAs
> Readily, and that, rather that ease of typing is what counts.
Nice example: the underscore part was in fact *much* harder to read for
me. The second part read nearly exactly like normally spaced text.
Maybe there is something to the thesis that it depends on what people are
accustomed to: English uses far less capital letters than German, and I
certainly prefer the German capitalization style.
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-25 13:25 ` Kai Henningsen
@ 2001-01-25 19:30 ` Harald Arnesen
0 siblings, 0 replies; 19+ messages in thread
From: Harald Arnesen @ 2001-01-25 19:30 UTC (permalink / raw)
To: Kai Henningsen; +Cc: linux-kernel
kaih@khms.westfalen.de (Kai Henningsen) writes:
> > 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.
So I assume you don't approve of the new German spelling standard,
where nouns with capital letters are optional (don't know if it became
reality, I remember reading that Günther Grass was against it).
For a Norwegian, the second variant is much more readable.
--
Harald Arnesen, Apalløkkveien 23 A, N-0956 Oslo, Norway
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [OT?] Coding Style
2001-01-23 16:00 ` Mike Harrold
2001-01-23 16:32 ` Joe deBlaquiere
2001-01-24 9:58 ` Completely offtopic : " Bernd Petrovitsch
@ 2001-01-26 0:20 ` James Stevenson
2 siblings, 0 replies; 19+ messages in thread
From: James Stevenson @ 2001-01-26 0:20 UTC (permalink / raw)
To: kaih; +Cc: linux-kernel
>
>> Then there is reasability.
>>
>> void ThisIsMyDumbassFunctionName
>>
so how many times have you typed something like
ThisIsMyDumbAssFunctionName instead of
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
--
---------------------------------------------
Check Out: http://stev.org
E-Mail: mistral@stev.org
12:10am up 10 days, 7:31, 4 users, load average: 0.16, 0.04, 0.10
-
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/
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2001-01-26 8:30 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-23 15:41 [OT?] Coding Style Jonathan Earle
2001-01-23 15:58 ` Larry McVoy
2001-01-23 16:00 ` Mike Harrold
2001-01-23 16:32 ` Joe deBlaquiere
2001-01-24 1:14 ` Steve Underwood
2001-01-25 13:33 ` Kai Henningsen
2001-01-24 5:42 ` Brent Rowland
2001-01-24 5:50 ` Andre Hedrick
2001-01-24 9:58 ` Completely offtopic : " Bernd Petrovitsch
2001-01-26 0:20 ` James Stevenson
2001-01-23 16:14 ` Georg Nikodym
2001-01-23 18:05 ` Christopher Friesen
2001-01-23 18:41 ` Mathieu Chouquet-Stringer
2001-01-23 18:44 ` Georg Nikodym
2001-01-23 18:53 ` James Kelly
2001-01-23 17:42 ` John Kodis
2001-01-25 13:38 ` Kai Henningsen
2001-01-25 13:25 ` Kai Henningsen
2001-01-25 19:30 ` Harald Arnesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®