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 X-Received: by 10.200.46.148 with SMTP id h20mr1333264qta.20.1463787892308; Fri, 20 May 2016 16:44:52 -0700 (PDT) X-Received: by 10.140.43.161 with SMTP id e30mr199711qga.17.1463787892285; Fri, 20 May 2016 16:44:52 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!88no5413554qga.1!news-out.google.com!13ni4511qgj.0!nntp.google.com!11no5413531qgt.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 20 May 2016 16:44:52 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.34.249.176; posting-account=Zsf4jwoAAADEqwCydv835KU9-S3h_Y26 NNTP-Posting-Host: 83.34.249.176 References: <73990fea-e26d-458f-b83c-ecbd24367622@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: ANN: Introducing AdaBase - Thick database bindings for Ada From: jrmarino Injection-Date: Fri, 20 May 2016 23:44:52 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3215 X-Received-Body-CRC: 1121261783 Xref: news.eternal-september.org comp.lang.ada:30440 Date: 2016-05-20T16:44:52-07:00 List-Id: On Friday, May 20, 2016 at 10:36:26 PM UTC+2, Jeffrey R. Carter wrote: > Identifiers such as Adabase and Tisokeywords. The "Ada Way" is Ada_Base a= nd=20 > ISO_Keyword_List. Similarly, "read_uncommitted" and the like would be=20 > "Read_Uncommitted". Ada_Base would be wrong because it's AdaBase, by definition. It's not two = words. The only difference with "read_uncommitted" is the capitalization. = So basically the assertion here is that if somebody chooses not to capital= ize enumerations, it's not Ada-like? I'll give you Tisokeywords but I had = no idea people were anal about this sort of thing (And I'll point out that = I use underscores overwhelmingly, so a minority of cases where I didn't sho= uldn't invalidate the whole thing) But frankly, not using a library because somebody doesn't subscribe to the = same style guide in every aspect is bit over the top, no? >=20 > Really. These are terrible naming schemes. With a little thought you can = come up=20 > with something better. I'd probably use something like >=20 > package Martin is > type Field_Size_ID is (One_Byte, Two_Bytes); >=20 > type Unsigned_One_Byte is mod 2 ** 8; > type Unsigned_Two_Bytes is mod 2 ** 16; > end Martin; Subjective. I think your suggestions are worse (honestly, not lashing out)= plus they aren't even feasible because there are actually signed versions = too (so ambiguous). Why should the type names have to suffer to avoid a pr= efix on an enumeration? But we're talking about opinions here and the subj= ective criticism seems to be about my naming choice. To summarize: 1) suggesting re-capitalization is okay and somebody that really cared even= could provide a git pull request to speed that along 2) Suggesting to rename types and enumerations to break all programs curren= tly using the library is a much bigger deal and what's the benefit?