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-Thread: 103376,e55245590c829bef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Beginners question: Compound types, how-to? Date: Mon, 01 Nov 2010 12:19:51 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> NNTP-Posting-Host: 2764d8388fd9177167b1a98484e29185 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 9de0d1558bcd42baccd236cd3c52bf58 X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <86y69d3rec.fsf@gareth.avalon.lan> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=9de0d1558bcd42baccd236cd3c52bf58 X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news2.google.com comp.lang.ada:16089 Date: 2010-11-01T12:19:51-07:00 List-Id: On 11/01/2010 10:06 AM, Mart van de Wege wrote: > Shark8 writes: > >> You could have appended "_Type" to the type declaration giving >> "Character_Type." >> This gives the added advantage of allowing your parameters to be >> highly descriptive, especially if you use named-association when >> calling the parameters. >> > That's another way around it. Nice. Thanks. No, not nice. Terrible. "_Type" is just noise; you could use "_Global_Nuclear_Warfare" just as well. You should never be adding unnecessary noise to your code. S/W engineering involves putting in the effort to think of good names for everything in your code. "_Type" is a kludge to avoid doing that thinking. In this case, the type defines the information for dealing with a Character, so I'd probably use Character_Info as the type name. -- Jeff Carter "Why don't you bore a hole in yourself and let the sap run out?" Horse Feathers 49