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,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: kevin.cline@gmail.com (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) Date: 25 Sep 2004 23:37:44 -0700 Organization: http://groups.google.com Message-ID: References: <338040f8.0409230912.70e3375b@posting.google.com> NNTP-Posting-Host: 24.219.97.214 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1096180664 30912 127.0.0.1 (26 Sep 2004 06:37:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 26 Sep 2004 06:37:44 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:4192 Date: 2004-09-25T23:37:44-07:00 List-Id: Eric Jacoboni wrote in message news:... > kevin.cline@gmail.com (Kevin Cline) writes: > > > > The Ruby implementation lines up with the Perl code almost token for > > token, except that I used the Perl <> operator, and I didn't bother > > storing the sort result in a variable. > > Of course, as Ruby is a language of the same high level as Perl. The > Perl/Ruby code sticks with the "natural" algorithm to count > words... There's no much ways to achieve this problem. The most natural > could be "Hey, count the different word of these files" but, > unfortunately, it could be done like that (when it will be possible, > well, we have to choose another job). > > > I agree that Ruby is slightly more readable than Perl, but I don't > > know about MUCH more readable. I think the use of %, @, and $ in Perl > > is not obvious, and the <> operator is pretty magical, but the rest of > > the code seems straightforward. > > For what i know, Ruby code is /always/ more readable than Perl code, > for the same level of abstraction. If you can see the difference in > this simple example, imagine for scripts of hundred and hundred > lines... Readibility, that's my point. I don't think it's all that important for code to be readable by someone with little experience in the language. It's nice if nothing else is sacrificed, but programmers don't remain novices for long. That said, I'm not arguing that Perl is better than Ruby. > > Back to Ada, i'm agree with you, your Ada code is not very readable : I'm not the author. The Ada code was written by Matthew Heaney, the author of Charles.