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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Luke A. Guest Newsgroups: comp.lang.ada Subject: Re: Introductory Presentations, especially aimed at C++ programmers! Date: Wed, 7 Dec 2016 17:44:08 +0000 Organization: Aioe.org NNTP Server Message-ID: <1905815374.502825168.454102.laguest-archeia.com@nntp.aioe.org> References: NNTP-Posting-Host: 5GmKbF6o9Wo9skayhnqZ2Q.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: NewsTap/5.2.1 (iPhone/iPod Touch) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:/q+k6cl14RajB17nS8EYu7kn5Uo= Xref: news.eternal-september.org comp.lang.ada:32655 Date: 2016-12-07T17:44:08+00:00 List-Id: A good way to compare is to take something that is easy but easily fuckupable, like cycling an int between it's bounds in C++. Implement a cyclic buffer in both languages, show iteration over the container. Show the use of modular types for the index and the for x in container loop notation. And shoot down the bullshit argument if "any good Programmer wouldn't make that mistake" because it can happen to anyone.