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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c5f189513e1f5f8a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 25 Mar 2009 17:20:35 -0500 From: "Brian" Newsgroups: comp.lang.ada References: <01d59695$0$20632$c3e8da3@news.astraweb.com> <1YudnblPCIBgtlrUnZ2dnUVZ_tbinZ2d@earthlink.com> <87r60oip8a.fsf@nbi.dk> <7NadnVUQy9Nzm1XUnZ2dnUVZ_geWnZ2d@earthlink.com> Subject: Re: Ada as a first language Date: Wed, 25 Mar 2009 15:20:11 -0800 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: <05idnQoZLMGuM1fUnZ2dnUVZ_g6WnZ2d@earthlink.com> X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 71.92.212.9 X-Trace: sv3-UX9KcEca1a1TSaonNSRJgZhnBEvKzDizbf9fhqpBNfKOcML/+21UmvihsHYxTImG3ev8cgEiMhXmfVR!825UCuQE76lBOORy9mc1HPCvDONY/hR8PFneEKj8Fx8oss3IG7vFP/1p4d9HVba28OgALzyn6910!jvJhE1oqRRQUIgAM3uKMlwszLccpLwAN X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 X-Original-Bytes: 4106 Xref: g2news1.google.com comp.lang.ada:4317 Date: 2009-03-25T15:20:11-08:00 List-Id: "John McCormick" wrote >Perhaps if you read the portion of my articles that explains WHY Ada >succeeds where C fails you could expand the domain far beyond my >trains. My conclusions on the problems with scalars has been >confirmed in numerous domains. >I agree that Ada is not suitable for many domains, but embedded >systems is one domain for which it is generally extremly well >suited. John, Ada works great, better than other languages, for certain situations. Not all situations. So, let's list a few "rules of thumb" about programming: 1. Short programs tend to be better (More successful) when they're written in the language that the implementer knows best. (Barring prior knowledge, then these short programs tend to be more successful in languages that are easier to learn.) 2. Some languages make handling some domains easier than others. 3. For programs under 100 SLOC, it might be a wash as to which language was better suited. (As long as the language supports the domain.) Now, what should we expect from a person with no programming experience, experimenting with embedded robotics? Probably small programs, for a good while. Probably most interested in seeing action from the end effectors than anything else. Now, what environment(s) would be most likely to give this person the greatest success with the least pain? Not Ada. The conclusions reached in your article are correct, up to a point. However, to make your point you abstracted two variables, the user's prior experience and the complexity of the problem space. (I don't blame you, the addition of those two variables would have turned your paper into a ponderous tome!) But, in this case these two variables are very important, in fact they're the only information given. Roughly applying my rules of thumb (Paragraph 1) to my assumptions (Paragraph 2), we get: A. The user will probably want to write short programs because he has no prior experience. He might tend to be more successful in a language that is easy to learn. And for programs under 100 SLOC, it might be a wash as to which language was better suited. B. The user will probably most want to see action from the end effector(s), and some languages might make handling the robotic domain easier. So, language probably doesn't matter and user success is of paramount importance. In this case, don't you think that an easier environment might be a better choice? If NXT-G (The Lego Mindstorms graphical language) is too simple, then there are many other choices available before I'd recommend Ada to a beginner. I realize that we all love using Ada, but shouldn't we consider the person's needs first? Brian Salter