In spite of programmers' fondness for non-alphabetical characters, surely
fooBarBaz is more readable than foo_bar_baz?! Humans - even programmers -
are more accustomed to reading words without underscores (which are not
always easy to see anyway). Besides, fooBarBaz has two fewer characters to
type!

Peter

-----Original Message-----
From: Jason Trenouth [mailto:[EMAIL PROTECTED] 
Sent: 02 December 2003 12:17
To: [EMAIL PROTECTED]
Cc: Lindsay Marshall; Chris Douce; Steven Clarke; [EMAIL PROTECTED]
Subject: Re: PPIG discuss: Effect of letter casing on readability

>>>>> On Tue, 2 Dec 2003 09:49:56 -0000, "Peter McKenna"
<[EMAIL PROTECTED]> said:

    Peter> With code it has the added benefit of course that capitals
    Peter> can distinguish words within compound identifiers.

Only for languages that have restictions on the constituent characters
of identifiers or which eschew the use of underscores by
convention. Eg

        fooBarBaz

vrs     foo_bar_baz

vrs     foo-bar-baz

BTW some languages use a lot more punctuation characters, by
convention, as visual cues. Eg from Dylan:

        <foo> is a class or type
        
        foo! is a destructive function

        foo? is a predicate function

        $foo is a constant

        *foo* is a module variable

__Jason


 
----------------------------------------------------------------------
PPIG Discuss List ([EMAIL PROTECTED])
Discuss admin: http://limitlessmail.net/mailman/listinfo/discuss
Announce admin: http://limitlessmail.net/mailman/listinfo/announce
PPIG Discuss archive: http://www.mail-archive.com/discuss%40ppig.org/

Reply via email to