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.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no 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-14 05:20:08 PST Path: supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!portc01.blue.aol.com!news.maxwell.syr.edu!newshub2.home.com!news.home.com!newspeer.monmouth.com!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: Bad coding standards Date: Thu, 14 Dec 2000 13:07:04 GMT Organization: Deja.com Message-ID: <91agll$kup$1@nnrp1.deja.com> References: <3A376D69.A420D711@earthlink.net> <131220001555268634%emery@mitre.org> NNTP-Posting-Host: 205.232.38.41 X-Article-Creation-Date: Thu Dec 14 13:07:04 2000 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x71.deja.com:80 (Squid/1.1.22) for client 205.232.38.41 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:3124 Date: 2000-12-14T13:07:04+00:00 List-Id: In article <131220001555268634%emery@mitre.org>, David Emery wrote: > For a while, I collected coding standards as a > hobby. I've seen some dumb ideas, but here's my > nomination for worst idea: > > package Long_Descriptive_Name is > > package LDN renames Long_Descriptive_Name Interesting .. this does not seem so horrible to me. If the routines in the package are basically designed to be used without qualification, so that the packages could be used with a USE statement, then the use of LDN.useful_descriptive_name is not so terrible. Given the choice of the following three possibilities in the GNAT compiler context: Analyze_Type_Declaration; SC3.Analyze_Type_Declaration; Semantics_For_RM_Ch_3.Analyze_Type_Declaration; I prefer the first one, since anyone who knows anything about the structure of GNAT knows where Analyze_Type_Declaration is declared, and if you don't know, you can press the appropriate key in GLIDE and be bounced to the right package (or use gnatfind to quickly find the right package if you are not using an IDE). I really find the last one horrible. Lots of noise here that would greatly increaes the length of the code and add nothing. THe middle one is a bit of an oddity. It adds nothing to the readability, but I can see it being useful in a junk environment which did NOT have good navigation tools, since you can use the plain editor search capability to locate the renaming statement. So in context I do not think this usage is necessarily a bad idea. Robert Dewar Sent via Deja.com http://www.deja.com/