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,1b41412c7bc28c47 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps82.POSTED!53ab2750!not-for-mail Sender: blaak@METROID Newsgroups: comp.lang.ada Subject: Re: Suffix _T for types found good References: <2e9ebb23-a68b-43cf-8871-febcb173f951@56g2000hsm.googlegroups.com> <188191be-d2c6-4d94-8d6b-082015954332@t54g2000hsg.googlegroups.com> <489A0440.9080201@obry.net> <594cdbb8-4018-44bd-a8db-0df3f23df247@z72g2000hsb.googlegroups.com> <489aa138$0$20716$9b4e6d93@newsspool4.arcor-online.net> From: Ray Blaak Message-ID: Organization: The Transcend User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 07 Aug 2008 17:01:16 GMT NNTP-Posting-Host: 142.179.108.138 X-Trace: edtnps82 1218128476 142.179.108.138 (Thu, 07 Aug 2008 11:01:16 MDT) NNTP-Posting-Date: Thu, 07 Aug 2008 11:01:16 MDT Xref: g2news1.google.com comp.lang.ada:1514 Date: 2008-08-07T17:01:16+00:00 List-Id: Georg Bauhaus writes: > It seems to be tempting to just use some variation of > a type name for objects. Example: > > osw: OutputStreamWriter; -- NOT! > > is typical of programs targetting the JVM. So the reader > remembers that "osw" designates some output channel. > But which one? The programmer was too lazy to think of > a name. Points of reference: The purpose of this output. > Where does it end? Which ends does it connect? I would use instead: writer : OutputStreamWriter; Use small routines. Then the names become clear, even if it is just osw. Succinct naming as a part of the general strategy of "Spartan Programming" is talked about here: http://ssdl-wiki.cs.technion.ac.il/wiki/index.php/Spartan_programming Some further debate about those ideas are found in the Coding Horror blog: http://www.codinghorror.com/blog/archives/001148.html At the risk of offense, being an Ada group and all, I must point out that Java's case insensitivity allows this kind of thing: Node node; which in practice works just fine: types are capitalized, values are not. It's easy to write, to read, and to maintain. Before I get blasted about the evils of case insensitivity, I should point out that Java is a unicode language, allows unicode in its identifiers, and case folding is not sensical in the general case for unicode characters. With Ada being essentially an ASCII language, the case folding debate has merit. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, rAYblaaK@STRIPCAPStelus.net The Rhythm has my soul.