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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,57c5412f281db3e9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news.glorb.com!bigfeed.bellsouth.net!news.bellsouth.net!newsfeed2.telusplanet.net!newsfeed.telusplanet.net!newsfeed.telus.net!snoopy.risq.qc.ca!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Message-ID: <413F0B44.3EE14D6C@sympatico.ca> From: "Ken O. Burtch" Reply-To: ken@pegasoft.ca X-Mailer: Mozilla 4.8 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Advanced scripting languages (was: Learning Ada83) References: <7g2_c.102478$dP1.364156@newsc.telia.net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Wed, 08 Sep 2004 09:38:12 -0400 NNTP-Posting-Host: 69.157.104.64 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1094650810 69.157.104.64 (Wed, 08 Sep 2004 09:40:10 EDT) NNTP-Posting-Date: Wed, 08 Sep 2004 09:40:10 EDT Organization: Bell Sympatico Xref: g2news1.google.com comp.lang.ada:3484 Date: 2004-09-08T09:38:12-04:00 List-Id: Randy Brukardt wrote: > > "Kevin Cline" wrote in message > news:e749549b.0409041928.67714f9b@posting.google.com... > > "Randy Brukardt" wrote in message > news:... > > > "Bj�rn Persson" wrote in message > > > news:7g2_c.102478$dP1.364156@newsc.telia.net... > > > Marius Amado Alves wrote: > > > > > > >>> It would also be useful and practical to learn one of the advanced > > > >>> scripting languages like Perl or Python or Ruby.... > > > >> > > > >> Wow, they're *advanced* scripting languages now! > > > > > > > >Sure, a *lot* more advanced than bat files. ;-) > > > > > > That's funny, because if it's complicated enough that I can't write a > batch > > > file to do it, I'll generally write it in Ada. Bat has If and Goto, and > that > > > is enough for simple tasks. Beyond that, I want to be able to fix it and > be > > > able to insure that it works... > > > > Strong typing is handy, but it's not enough to ensure that something > > works. Ada has it's strengths, but it's not the tool for every job. > > Why would you spend an hour writing 50 or 100 lines of Ada code when > > five minutes and a five-line Perl script would do the job? > > Because it would take a week to learn Perl well enough to use it that way. > And it is very rare that such a program is never used again; my one > experience with Perl showed it to be a write-only language (it took me two > weeks to successfully modify the code that runs the CVS on the ada-auth.org > site). And it is very rare that I need to write a 100 line throwaway > program; most of my code has much more permanence than that. Summary: It > doesn't make sense for me. YMMV. > > Randy. On a rare visit to comp.lang.ada, Ken writes... The documentation for the AdaScript Business Shell (http://www.pegasoft.ca/bush.html) contains several arguments against tools like Perl in favor of Ada-based scripting languages, including: 1. Lower learning curve (a BUSH for loop is an Ada for loop) 2. Lower overall cost for maintaining a script project over its lifetime 3. Error messages that work for you, not against you 4. Better readability when debugging other people's scripts. 5. Sensible syntax shortcuts designed to be typo-resistant. 6. Better portability. 7. Code reuse. When you look at the big picture, Perl projects increase costs and development time. As always, use the right tool for the job. But my experience with Perl development over the past 2 years has been negative. The idea of a 5 line Perl script to replace 100 lines of Ada is a myth. Ken B. Author of "Linux Shell Scripting with Bash" -- Ken O. Burtch: http://www.pegasoft.ca : Pegasoft Linux Shell Scripting with Bash / Business Shell : R.R.#1 Bio: 38;Bsc,UI,Lang,Games;Toons,Elves,SF,Pizza;Xian : Jordan Station, ON ````````````````````````````````````````````````````` Canada L0R 1S0