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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,577df5d4a0e88785 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-18 10:59:25 PST Path: supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news.mindspring.net!not-for-mail From: Marin David Condic Newsgroups: comp.lang.ada Subject: Re: Bad coding standards Date: Mon, 18 Dec 2000 13:59:10 -0500 Organization: Quadrus Corporation Message-ID: <3A3E5E7E.67817482@acm.org> References: <91b9ma$bne$1@nnrp1.deja.com> <3A3E36C4.3466A19C@averstar.com> NNTP-Posting-Host: d1.56.be.7c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 18 Dec 2000 18:59:39 GMT X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:3226 Date: 2000-12-18T18:59:39+00:00 List-Id: In any case (pun intended :-) this seems to be basically a non-issue. If you like all upper case, you're free to use it. If you like C++ coding conventions, you're free to do that too. Consistency within a project is probably more important than specifically what style you choose. Consistency means that someone reading your code within a project will more immediately recognize what they are looking at. People who look at my code may not always like the way I have done things, but it at least looks like it was done in a very mechanistic style, with very consistent rules that help them recognize what is going on. (Anyone can visit my web site and look over code I have made available there if they are curious about my style...) This is much superior to code that looks like it was "Organically Grown". I started out with Ada using all upper case for identifiers, following the convention of the standard (Ada83). I think maybe I did so because of ancient history. Slowly, I was persuaded to use mixed case. I think I've grown to like the appearance of mixed case because it just looks nicer. But its a matter of taste and if someone uses all upper case or the C/C++ convention of mixed case with no underscores, I can live with it and work with it. Make the code look like the rest of the code in the project (unless it is hopelessly messy!) and you're doing a favor to those that come after you. If the code is started from bottom-dead-center, then establish a style and stick to it. The visual consistency will help those that come later recognize what is happening more quickly. MDC Tucker Taft wrote: > Well, as usual, we each have our own interpretation of history. > For what it is worth, my memory is that the Ada 9X design team really > hated the ALL CAPS convention of Ada 83. Perhaps Robert is giving > the reason why the proposed change was accepted by the > reviewers, rather than the reason why the change was > proposed in the first place. -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Giving money and power to Government is like giving whiskey and car keys to teenage boys." -- P. J. O'Rourke ======================================================================