comp.lang.ada
 help / color / mirror / Atom feed
From: james@sandy.mcci-arl-va.com (Scott James)
Subject: Capitalization Entropy (was: Looking for good Ada95 book)
Date: 1996/11/14
Date: 1996-11-14T00:00:00+00:00	[thread overview]
Message-ID: <56dodr$alf@client3.news.psi.net> (raw)
In-Reply-To: 199611121842172247819@dialup110-1-9.swipnet.se


I do hate to introduce mere technical (sort of) details into this
political discussion on capitalization but it is interesting (to me at
least) that a subset of these different styles can be analyzed from an
information point of view.  For my measure of information, I use
*intended* capitalization.  The three styles in question, summarized
by Lars are:

   (1) all_lower_case_identifiers (with intended capitalization)
   (2) Mixed_Case_Identifiers     (with intended capitalization)
   (3) ALL_UPPER_CASE             (well... you get the idea)

The claim is that case (1) contains the most information according to
the intended capitalization metric.  Examples of this have already
been given in this very thread but I will summarize quickly with an
example:

  (1) this_is_an_IO_package_I_got_from_Fred 
  (2) This_Is_An_IO_Package_I_Got_From_Fred 
  (3) THIS_IS_AN_IO_PACKAGE_I_GOT_FROM_FRED 

This has consequences when converting between the styles.
Assume the obvious (simplest) conversion programs between (1),(2),(3).

Going from (3) --> (?) --> (3) we arrive at the same data.
Going from (2) --> (1) --> (2) we arrive at the same data.
Going from (2) --> (3) --> (2) we lose the capitalization of "IO"
Going from (1) --> (2) --> (1) we lose the capitalization of "I" and "Fred"
Going from (1) --> (3) --> (1) we lose the capitalization of "I","IO","Fred"

Thus, these styles are well ordered according to capitalization
entropy (any Comp Sci looking for a Master's Thesis?  You can
borrow my phrase, ... just kidding ... I hope), that is, one may
convert without losing information in only one direction.   


     But while we are on the topic of politics   :-) ...


begin Lars: 

   ... Different scopes. Organization and every user. When I say
   "allow different styles", I mean the larger scope. One project /
   organization / person should not impose its own preferred style on other
   unrelated organizations / persons. I do not mean that you should accept
   anything within a project / organization.

end Lars:

This quite hits the nail on the head as it were.  The point being
really whether this whole thread has been about:

(a) it's good to have in house discipline and accept conventions

(b) it's good that *all* Ada programmers follow the Mixed_Cap 
    convention.

Personally, I can't agree with (a) more, but (b) seems a bit hard to
swallow (for entropic and readabily issues).  I thus wonder how many others
out there are a bit leary when they see:

begin Dewar:

   My point is that we might as well all get used to the same style,
   and luckily, as I see from a very large sample of Ada 95 users, the
   great majority DO use a single style. In my opinion, those in the
   minority should change -- I did!

end Dewar:

Incidentally, is it my imagination or was there a dissenting
capitalization opinion in the Ada83 style guide?  I seem to
have misplaced mine and now only have Ada95 style guides.










  reply	other threads:[~1996-11-14  0:00 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-26  0:00 Looking for good Ada95 book Lars Lundgren
1996-10-28  0:00 ` Rapicault Pascal
     [not found]   ` <01bbc5d8$a3b24e00$6a9148a6@cornerstone.mydomain.org>
1996-10-29  0:00     ` Robert Dewar
1996-10-30  0:00       ` Michael Feldman
1996-11-02  0:00         ` Robert Dewar
1996-11-03  0:00           ` Matthew Heaney
1996-11-03  0:00           ` Robert A Duff
1996-11-03  0:00             ` Robert Dewar
1996-11-04  0:00           ` Michael F Brenner
1996-11-04  0:00             ` Larry Kilgallen
1996-11-04  0:00               ` Robert Dewar
1996-11-09  0:00                 ` Michael Feldman
1996-11-11  0:00                   ` Richard A. O'Keefe
1996-11-12  0:00                     ` Mark Shaw
1996-11-06  0:00               ` James Thiele
1996-11-08  0:00                 ` Stephen Leake
1996-11-06  0:00             ` Robert A Duff
1996-11-06  0:00             ` Richard A. O'Keefe
1996-11-06  0:00               ` Robert Dewar
1996-11-04  0:00           ` Norman H. Cohen
1996-11-04  0:00             ` Jerry Petrey
1996-11-06  0:00               ` Richard A. O'Keefe
1996-11-09  0:00               ` Michael Feldman
1996-11-05  0:00             ` Silliness (was: Looking for good Ada95 book) Adam Beneschan
1996-11-06  0:00               ` Richard A. O'Keefe
1996-11-06  0:00           ` Chris Morgan
1996-11-08  0:00           ` bill.williams
1996-11-09  0:00             ` Michael Feldman
1996-11-09  0:00           ` Looking for good Ada95 book Michael Feldman
1996-11-10  0:00             ` Lars Farm
1996-11-10  0:00               ` Robert Dewar
1996-11-11  0:00                 ` Lars Farm
1996-11-12  0:00                   ` Robert Dewar
1996-11-12  0:00                     ` Lars Farm
1996-11-14  0:00                       ` Scott James [this message]
1996-11-14  0:00                         ` Capitalization Entropy (was: Looking for good Ada95 book) Robert A Duff
1996-11-18  0:00                   ` Looking for good Ada95 book Richard A. O'Keefe
1996-11-12  0:00                 ` Michael Feldman
1996-11-17  0:00                   ` Robert Dewar
1996-11-18  0:00                     ` Richard Pattis
1996-11-19  0:00                       ` Do-While Jones
1996-11-20  0:00                       ` John English
1996-11-20  0:00                         ` Larry Kilgallen
1996-11-21  0:00                       ` FerretWoman
1996-11-22  0:00                         ` Richard A. O'Keefe
1996-11-24  0:00                           ` Fergus Henderson
1996-11-18  0:00                   ` Richard A. O'Keefe
1996-11-18  0:00                     ` Michael Feldman
1996-11-20  0:00                       ` Testing teaching belief? Richard A. O'Keefe
1996-11-20  0:00                         ` Robert Dewar
1996-11-20  0:00                         ` Robert Dewar
1996-11-22  0:00                           ` Richard A. O'Keefe
1996-11-29  0:00                             ` Debora Weber-Wulff
1996-12-01  0:00                               ` Robert Dewar
1996-11-14  0:00             ` Looking for good Ada95 book Richard A. O'Keefe
1996-10-31  0:00       ` Tom Pastuszak
1996-10-28  0:00 ` Larry Kilgallen
1996-11-04  0:00 ` John English
1996-11-06  0:00 ` Wolfgang Gellerich
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox