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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,CP1252 Path: g2news2.google.com!postnews.google.com!a21g2000yqc.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Types, packages & objects : the good old naming conventions question (without religious ware) Date: Thu, 29 Oct 2009 21:52:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <561e0a4a-c6c0-42db-9f31-a70f4eae1ed9@a21g2000yqc.googlegroups.com> References: <4ae9dade$0$6551$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 86.75.149.92 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1256878363 27719 127.0.0.1 (30 Oct 2009 04:52:43 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 30 Oct 2009 04:52:43 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a21g2000yqc.googlegroups.com; posting-host=86.75.149.92; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8872 Date: 2009-10-29T21:52:43-07:00 List-Id: On 29 oct, 19:11, Georg Bauhaus wrote: > If you can't find a name for an object, ask more questions > about it, its use, its relations, the programmer, its purpose, > his purpose, etc: > What is the role of the object? =A0Does the role lead to a name? > It might not, at first. =A0For example, the role > can be given as "just any object" of the type. =A0I would not be > comfortable with such an answer (though, for practical reasons, > I live with it): > The person who says "just any object" should be able to give > a reason why "just any object" is sufficient. =A0The reason, > and in particular stating the reason using words, increases the > likelyhood of finding a name expressing the reason. > Or the reaons leads to other ideas which, again, lead to a > name. (just about this sole point, the remaining later) An example trap (to me at least) : what about a type which would seems obviously named Size and a parameter which seems obviously named Size ? X would surely not be OK, neither Item. An idea may be to get a more or less close synonymous (like Count... not very good) for the parameter for which one may naturally be tempted to name Size. But this seems (and is) a work-around, and if the word =93 work-around =94 really legitimately applies on that situation, this means there is a trouble (not natural, at least). Why the work around will probably applied on the parameter ? Because the parameter comes later when the type definition is already introduced (in the worst case, it may be tempting to change the type name). This latter detail makes us to come to another aspect of the trouble : choosing a practicable type name, may requires an amount of prediction over what instance names may be. Note : Triggering this, I'm not attempting to advocate for the _Type or other _Xxx suffix convention, as I honestly find that using a simple noun as a type name, is smart and elegant in many ways. I'm just attempting to evaluate both cases in a formal and long life prediction way. I'm short with this reply, but I will be back to reply to other interesting stuff written back here by peoples.