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-Google-Thread: 103376,a9b0810d3106d9b8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 Path: g2news1.google.com!postnews.google.com!t19g2000prd.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Elias_Salom=E3o_Helou_Neto?= Newsgroups: comp.lang.ada Subject: Re: Fun with C Date: Thu, 21 Apr 2011 07:52:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0ee0dce3-9121-4af2-9c54-cd15264969ff@t19g2000prd.googlegroups.com> References: <27cf3992-4132-4483-9110-adc7a089cd4a@e8g2000vbz.googlegroups.com> <54108d8d-4e7c-4901-bd5e-819d27720d48@a11g2000pro.googlegroups.com> <4daa8fc6$0$7652$9b4e6d93@newsspool1.arcor-online.net> <37428a21-61b4-4cdf-9897-7b84252f8fce@a11g2000pro.googlegroups.com> <4dab6906$0$6893$9b4e6d93@newsspool2.arcor-online.net> <57a1fa4b-4730-41a8-be8a-82061ef9dc22@x37g2000prb.googlegroups.com> <4daca6ba$0$6773$9b4e6d93@newsspool3.arcor-online.net> <33973ba6-c390-4af1-9116-6facb12e2878@u12g2000vbf.googlegroups.com> <4dad9c1b$0$6875$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: 186.223.216.44 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1303397569 14107 127.0.0.1 (21 Apr 2011 14:52:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 21 Apr 2011 14:52:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t19g2000prd.googlegroups.com; posting-host=186.223.216.44; posting-account=8auP9QoAAACkSx2qxJhP83KA6-tg78E8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.8 SUSE/7.0.528.0 (KHTML, like Gecko) Chrome/7.0.528.0 Safari/534.8,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18951 Date: 2011-04-21T07:52:49-07:00 List-Id: On Apr 19, 11:28=A0am, Georg Bauhaus wrote: > On 4/19/11 3:10 AM, Elias Salom=E3o Helou Neto wrote: > > > =A0what I meant was basically that: people will keep doing > > dumbness because they are just people (me included). No matter what > > language is used. > > Agree. =A0Perhaps one language can make being stupid more difficult > than another, then. > > >> There is evidence that different > >> fundamental type =A0systems help non-dumb people solve their problems = more > >> successfully. =A0People will still be using C libraries and additional > >> code generators, as a replacement for a better suited type system. > > > I would like to see this evidence. > > One comparative study, not entirely free of all bias I would think, > but pretty close to standard experiments yielding valid data, > was conducted over several years, by John W. McCormick. It is > about a project that switched not subjects or algorithms but the > language. The result was published in August 2000 ashttp://www.crosstalko= nline.org/storage/issue-archives/2000/200008/200... I've had a difficult time reading the report because the authoring software did not embed the fonts (this kind of thing makes me itch), making it difficult to read it in full because metrics were wrong. This is not my fault, the document simply was not made to be read by others if fonts were not embedded. > =A0From which is this quote: > > "Upon reading the project listings and team member diaries, > =A0 I concluded that the major advantages of Ada for these > students were, in order of importance: > =95 Modeling of scalar objects. > =A0 =A0=96 Strong typing. > =A0 =A0=96 Range constraints. > =A0 =A0=96 Enumeration types. > =95 Parameter modes that reflect the problem rather than the mechanism. > =95 Named parameter association. > =95 (...)" You've quoted those which make sense. But what about "Arrays whose indices do not have to begin at zero"? While it is a workaround and I don't actually recommend it, in C you can simply declare an array with a size slightly (+1) larger and use it as it started at 1. Also, students of an introductory course do not qualify as "non-dumb". Most professional programmers are dumb and had likely gone through some kind of course like that. Anyway, it is good evidence in favor of Ada for embedded projects written by real-life programmers, but I don't remember to have disagreed that Ada would be better for non- competent (real-life) programmers. For the record, I've recently seen in this newsgroup a discussion on how difficult is to hire good programmers, most couldn't even do the most basic bit manipulation in whatever language. That's why I say that real-life programmers are non competent. So, ok, you're right in advocating Ada. It is just not fair to bash C. Elias.