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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Type naming conventions: Any_Foo Date: Thu, 5 Dec 2019 18:27:24 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 5 Dec 2019 17:27:24 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="ddbb247c959f2e7fbc1f00c09e538ea7"; logging-data="23454"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xrCCA+3YFq6rDOU3e6AyK1rB9pKcz7os=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 Cancel-Lock: sha1:vS1aLu+L8ItdnCzyK6CQ/u9Vlo4= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57657 Date: 2019-12-05T18:27:24+01:00 List-Id: On 12/5/19 11:51 AM, AdaMagica wrote: > > (Broadsword, Catapult, Bow_and_Arrow); There are 2 ways to look at them: 1. These identify the possible weapons: Weapon_ID 2. These are the names of the possible weapons: Weapon_Name Either of these are better than any name derived using a convention, while still leaving the best name (weapon) available for parameter names. This because they were created by thinking (which is what S/W engineers are paid to do), while conventions exist to allow developers to avoid thinking. I would even say that those who use naming conventions such as _T[y[p[e]]] are either not S/W engineers or are shirking their duties. -- Jeff Carter "Ada has made you lazy and careless. You can write programs in C that are just as safe by the simple application of super-human diligence." E. Robert Tisdale 72