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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,971aa11c293c3db1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-23 18:51:20 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!newshub2.home.com!news.home.com!news1.rdc2.on.home.com.POSTED!not-for-mail Message-ID: <3B5CD497.9CCCD509@home.com> From: "Warren W. Gay VE3WWG" X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada The Best Language? References: <5be89e2f.0107170838.c71ad61@posting.google.com> <5be89e2f.0107180235.726d46a8@posting.google.com> <9j3rrd$g71$1@s1.read.news.oleane.net> <5be89e2f.0107181300.4b4e93d7@posting.google.com> <3B57195E.A3A3FED@home.com> <9j93u6$1ua8$1@norfair.nerim.net> <3B586A17.862BA84D@home.com> <9j9s3t$kn8$1@wanadoo.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 24 Jul 2001 01:51:20 GMT NNTP-Posting-Host: 24.141.193.224 X-Complaints-To: abuse@home.net X-Trace: news1.rdc2.on.home.com 995939480 24.141.193.224 (Mon, 23 Jul 2001 18:51:20 PDT) NNTP-Posting-Date: Mon, 23 Jul 2001 18:51:20 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:10486 Date: 2001-07-24T01:51:20+00:00 List-Id: Bertrand Augereau wrote: > > The best features of C++ still leave numerous faults in the final product: > > - No overflow checks > > - In some cases, no divide by zero checks (this feature may need to be > > enabled on your platform). > > "You don't have to pay for what you don't use" is the principle. What you save is far less than what you gain by having the check in place (the cost of debugging is far costlier than the few cycles you save). As someone else pointed out, you can disable this in production code if you like. > > - No array bounds checking, unless you use classes to do this for you > > (a very costly approach for small arrays) > Plain wrong. Just look at STL's vector. You can use it with or without > bounds checking depending your needs. And it's very efficient. It may be "efficient enough" for larger arrays, but it is still very heavy handed for a 6 character array ;-) It doesn't have to be a large array to be a problem. ...snip... > > Or.. > > > > The Ada approach : > > > > 1. Build hang glider > > 2. Fix identified bugs > > 3. Repeat 2 as required > > 4. Flight test > > I guess you will agree the development process is not inherent to the > language. > You can build clean software in C++ or Java using the good methods, as well > as in Ada. The problem however, is that these other languages do a relatively poor job of identifying other problems up front. To compensate, you site "methods" or "practices", which require volunteer effort. With Ada, the checks are part of the compile process, like it or not. > In the field I work (videogames), this is not the case, but I have planned > in more critical domains (though not that critical), and I understand those > constraints. > I do think the main difference is that people who program in Ada are less > numerous and therefore more competent than the vast majority of C++ > developers. You assume a lot there. > The subject line was not mine, I was just making the point that many people > criticizing C++ don't know much of it. Many would say the opposite is true. Many people simply do not want to learn Ada and actually try to apply it. And this won't work overnight.. you need to gain real experience with it before you appreciate its beauty. One or two semesters in University is no substitute for real experience. -- Warren W. Gay VE3WWG http://members.home.net/ve3wwg