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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.168.197 with SMTP id f188mr4461733ywh.39.1474800273723; Sun, 25 Sep 2016 03:44:33 -0700 (PDT) X-Received: by 10.157.59.194 with SMTP id k60mr1222427otc.10.1474800273048; Sun, 25 Sep 2016 03:44:33 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!w41no2588119qtw.1!news-out.google.com!b4ni11817iti.0!nntp.google.com!u18no4223133ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 25 Sep 2016 03:44:31 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.113.36.20; posting-account=wg42bwoAAAAkdsXrFOhcNSrdlVzaFnf1 NNTP-Posting-Host: 80.113.36.20 References: <52cfa89e-7e4f-48f6-93b4-d559ea001d82@googlegroups.com> <87oa3ph71j.fsf@adaheads.sparre-andersen.dk> <0dbca7f0-791b-4eee-99fa-ce5fe2a71de6@googlegroups.com> <2d49e17f-c57e-451e-a506-96f963b3cf61@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: feedback asked on dab-decoder software in Ada From: jan van katwijk Injection-Date: Sun, 25 Sep 2016 10:44:33 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:31884 Date: 2016-09-25T03:44:31-07:00 List-Id: Yes, but the choices here are made on user input. The first step is that th= e dab software looks for a set of programs belonging to an ensemble. Of cou= rse, the user may select a different channel, such that the software has to= start all over again and look for the data in the ensemble, encoded in the= channel. Then, the user may select a program from a list. That program has attribute= s needed for decoding (e.g. protection level influencing the deconvolution,= MP2 or MP4 etc) For such - pretty major - changes I selected - obviously influenced by havi= ng done the implementation in C++ earlier - to delete whole instances and c= reate new one with the new parameters, and yes, I am using class wide varia= bles to refer to these new instances (e.g. the MP2 handler and the MP4 hand= ler both derive from a single - empty - audio class.=20 Wrt style: I like writing things in neat colums, use lots of white space et= c etc. But I am too old to get used to an IDE (I prefer working from the co= mmand line, using VI), and for me it is equal effort to Capitalize or not. = But again, for things like "is..." "has..." I definitely prefer lowercases = in front, rather than "Is_XXX" or "Has_XXX". Well, as said, Gnat does not c= omplain anymore about the layout and I am looking at naming. One of the nicer things in C(++) is the larger degree in freedom in introdu= cing a new variable. I really prefer localizing, but in Ada that leads to p= retty heavy nesting if blocks in other structures (i.e. assume you need a v= ariable in one branch of an if-then-else or within a loop) Anyway, it is a real fun project jan