From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c984a7f4a0ab0148 X-Google-Attributes: gid103376,public From: rogoff@sccm.Stanford.EDU (Brian Rogoff) Subject: Re: non key-words in xemacs to be upper case Date: 1996/09/01 Message-ID: #1/1 X-Deja-AN: 177861002 references: organization: /u/rogoff/.organization reply-to: rogoff@sccm.stanford.edu newsgroups: comp.lang.ada Date: 1996-09-01T00:00:00+00:00 List-Id: dewar@cs.nyu.edu (Robert Dewar) writes: In my experience anyone can get used to almost any convention. What is valuable is for everyone to use the same convention, so that silly disagreements on capitalization conventions do not get in the way of code sharing etc. It seems clear that the Ada community largely prefers lower case keywords and mixed case identifiers. I think it is a good idea if the minority that likes other conventions makes an effort to shift. I completely agree with this, the AQAS style guidelines seem pretty good to me. I was using the Smalltalk/ObjC/Java naming style before, and I switched over easily. I made the switch because I use Norman Cohen's book as my main Ada reference and I wanted my conventions to reflect the (Ada programming community) majority choice. I'd like to add that I think that there may be more to this matter than simply following the whims of the majority to make ease code sharing, which would be a great reason regardless. There is a large amount of accumulated wisdom in graphic design, particularly typography, which could be applied here. There are probably more than a few people on this newsgroup who can recall reading a math text which looks like it was typeset on a typewriter (e.g. Keisler's "Foundations of Infinitesimal Calculus"). It looked like crap, no matter how good the content was. So type (the other kind of type ;-) choice matters, when it comes to readability. When I look through some of the Ada texts on the bookshelves, the ones whose typesetting I find most appealing are the ones which adhere to AQAS naming style and use boldface, rather than caps, to set off reserved identifiers. This is much nicer to read than using single weight and all caps. This seems to be the style that quite a few Ada 95 book authors have adopted. It is also my choice for reading Ada code. I saw one book that used bold lower case for reserved words and all caps for variables and functions, I think, and I recall that I still didn't like the all caps, but that using boldface helped a bit. I notice that the Cohen and Barnes seem to prefer san-serif fonts for code. I am not convinced that this is best. Any informed opininons? What about other books? -- Brian