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,7eaf9f2597de2259 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-07 12:49:53 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3BC0B1D4.21C79A8@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: on package naming, should the word "_pkg" be part of it? References: <9pif1o01btl@drn.newsguy.com> <3BBD12F1.9BED0B70@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 07 Oct 2001 19:49:51 GMT NNTP-Posting-Host: 63.178.187.91 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1002484191 63.178.187.91 (Sun, 07 Oct 2001 12:49:51 PDT) NNTP-Posting-Date: Sun, 07 Oct 2001 12:49:51 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Sun, 07 Oct 2001 12:46:18 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:13866 Date: 2001-10-07T19:49:51+00:00 List-Id: Simon Wright wrote: > > Jeffrey Carter writes: > > > package Foo_Package is ... > > type Radian_Type is ... > > procedure Calculate_Procedure (Initial_Guess_In_Float_Parameter : in > > Float ... > > Number_Of_Widgets_Positive_Variable : Positive; > > Pi_Real_Constant : Constant := 3.14159; > > Maximum_Word_Length_Positive_Constant : constant Positive := X'Last + > > Padding; > > Are you pulling our collective leg here? Yes. > > Just to take that procedure .. what happens if it turns into a Double, > for instance? > > I'm all in favour of thinking of sensible and helpful names, but I > can't think that sticking ___Parameter on the end of every > parameter of a procedure is going to help anyone. I was simply making the point that those who think sticking _Type on every type name or _Package on every package name is a Good Thing should also think sticking _Procedure on every procedure name, _Parameter on every parameter name, and such are also Good Things. Then I threw in mode and type information to make it even more unworkable. These conventions (and The_ on every parameter name is the same thing, only worse) are really work-arounds to having to think about names. While not thinking is popular, it is not a good way to develop software. I'm disheartened that only 2 of us find my proposal unsatisfactory. -- Jeff Carter "Sons of a silly person." Monty Python & the Holy Grail