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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:280d:: with SMTP id o13-v6mr1993941ioo.130.1530529421773; Mon, 02 Jul 2018 04:03:41 -0700 (PDT) X-Received: by 2002:aca:f495:: with SMTP id s143-v6mr1091089oih.7.1530529421530; Mon, 02 Jul 2018 04:03:41 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!u78-v6no2935683itb.0!news-out.google.com!z3-v6ni2475iti.0!nntp.google.com!d7-v6no2966516itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 2 Jul 2018 04:03:41 -0700 (PDT) In-Reply-To: <47d4ddac-8dae-426c-9096-88d032c59cb0@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.9.244.34; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 194.9.244.34 References: <856189aa-fa00-4960-929e-174f352310ad@googlegroups.com> <2718c8d4-5f35-4fd8-a1aa-1e60069a7a5d@googlegroups.com> <39fce60c-9f56-42fb-b679-fa08810b00ee@googlegroups.com> <47d4ddac-8dae-426c-9096-88d032c59cb0@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Teaching C/C++ from Ada perspective? From: Maciej Sobczak Injection-Date: Mon, 02 Jul 2018 11:03:41 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:53502 Date: 2018-07-02T04:03:41-07:00 List-Id: > Because it is necessary to understand the entire language I would discuss with this. The Ada and C++ standards have comparable "volum= es" in terms of number of pages (and both are *huge*) and I do not see any = fundamental reason for why partial knowledge of the language is guaranteed = to be safe in one language but not in the other. Looking at the questions t= hat are being (sometimes periodically) asked on this group shows that Ada b= eginners are not entirely safe. It is still possible, though, to present the part of the language that is s= ufficiently complete to allow students write reasonable programs. If you ar= e looking for a C++ book at this level of presentation, start with "Acceler= ated C++", it is known for its focus on good selection of idioms from the v= ery beginning. > For one semester you must choose a fragment (probably classes), and releg= ate style issues to "further reading". Yes. > (Whereas in Ada you can take a fragment and keep the good style.) No. Or I see no reason for Ada to be better here. I mean - this is the mood= that everybody here likes to share, but just check the first screenful of = questions to see how easy it is for the beginner to go astray. > In sum, and to the point, I see nothing you can transpose from Ada. Both languages are in the same family with regard to being imperative and v= alue-oriented. There is a lot of conceptual commonality here, much more tha= n, say, between C++ and Java. --=20 Maciej Sobczak * http://www.inspirel.com