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:c941:: with SMTP id z62-v6mr7945012iof.20.1541193114137; Fri, 02 Nov 2018 14:11:54 -0700 (PDT) X-Received: by 2002:aca:ad0a:: with SMTP id w10-v6mr3820oie.2.1541193113936; Fri, 02 Nov 2018 14:11:53 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!news.muarf.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!75-v6no1019963itm.0!news-out.google.com!n199-v6ni712itn.0!nntp.google.com!z5-v6no1021431ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 2 Nov 2018 14:11:53 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=208.114.128.105; posting-account=MRPdDAoAAADUJmZVjnYaoafXFMadSeY1 NNTP-Posting-Host: 208.114.128.105 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5af3c4a0-5856-47ec-bb05-0ae9f9bb24ff@googlegroups.com> Subject: Trivia: Ada packages are great! From: Olivier Henley Injection-Date: Fri, 02 Nov 2018 21:11:54 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:54754 Date: 2018-11-02T14:11:53-07:00 List-Id: Hey, These days, at my job, I integrate the C++ work of a colleague into a bigger product. Developing alone, for months, he chose convenient name for his classes. Because they are not mandatory in C++ and because he did not need it, he did not used namespaces. Fair. What do you think happened when moving the code into a MUCH larger C++ code base? It clashed, and a lot. It took hours to stitch things together, even adding a 'hacky halfbaked' namespace to lift the ambiguity. I just want to recall that in Ada being forced to choose a package name for our units is a frustration/time/clarity saver. Integrating would have taken nothing. Anyone arguing that enforcing explicit separation of code units is a waste of time or tutoring for bad programmers is plain wrong. This is one of the many reasons why Ada, in the long run, kills it. ohenley