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-Thread: 103376,fc52c633190162e0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e65g2000hsc.googlegroups.com!not-for-mail From: "jimmaureenrogers@worldnet.att.net" Newsgroups: comp.lang.ada Subject: Re: why learn C? Date: 29 Mar 2007 21:52:32 -0700 Organization: http://groups.google.com Message-ID: <1175230352.808212.15550@e65g2000hsc.googlegroups.com> References: <1172144043.746296.44680@m58g2000cwm.googlegroups.com> <1172161751.573558.24140@h3g2000cwc.googlegroups.com> <546qkhF1tr7dtU1@mid.individual.net> <5ZULh.48$YL5.40@newssvr29.news.prodigy.net> <1175215906.645110.217810@e65g2000hsc.googlegroups.com> NNTP-Posting-Host: 75.70.221.169 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1175230354 31867 127.0.0.1 (30 Mar 2007 04:52:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 30 Mar 2007 04:52:34 +0000 (UTC) In-Reply-To: <1175215906.645110.217810@e65g2000hsc.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.11) Gecko/20070312 Firefox/1.5.0.11,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e65g2000hsc.googlegroups.com; posting-host=75.70.221.169; posting-account=SqOfxAwAAAAkL81YAPGH1JdBwpUXw9ZG Xref: g2news1.google.com comp.lang.ada:14671 Date: 2007-03-29T21:52:32-07:00 List-Id: On Mar 29, 6:51 pm, "kevin cline" wrote: > No, what actually happened is that expert C++ developers learned to > use C++ in such a way that those errors can not happen. While it is > possible to write unsafe code in C++, it is also possible to adopt > coding guidelines that makes it easy to find and eliminate unsafe > code, and for most applications, that's quite good enough. Coding guidelines cannot by themselves prevent any errors. For example, the JSF AV C++ Coding Standard, which is intended to limit the unsafe features of C++, contains 221 rules. It is not possible to check 6 million lines of code against 221 rules by hand in any timely or economical manner. The NASA Ada Flight Software coding guidelines contain 14 rules. The intent of both coding standards is to produce software safe enough to use for airborne avionics systems. Coding standards can help up to a point. When the coding standards are oppresively complex they cease to help. Jim Rogers