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-Received: by 2002:ac8:568b:: with SMTP id h11mr17780947qta.197.1587883749992; Sat, 25 Apr 2020 23:49:09 -0700 (PDT) X-Received: by 2002:aca:4d45:: with SMTP id a66mr2784704oib.119.1587883749663; Sat, 25 Apr 2020 23:49:09 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 25 Apr 2020 23:49:09 -0700 (PDT) In-Reply-To: <9a4ad55c-ef0d-42ab-a438-cabc71a491a6@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=93.41.2.250; posting-account=9fwclgkAAAD6oQ5usUYhee1l39geVY99 NNTP-Posting-Host: 93.41.2.250 References: <9a4ad55c-ef0d-42ab-a438-cabc71a491a6@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <241df266-9f5d-478e-9eaf-49ee32bf4330@googlegroups.com> Subject: Re: Script-like jobs in Ada (ideas for HAC) From: mockturtle Injection-Date: Sun, 26 Apr 2020 06:49:09 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:58494 Date: 2020-04-25T23:49:09-07:00 List-Id: On Friday, April 24, 2020 at 9:45:34 PM UTC+2, gautier...@hotmail.com wrote= : > It's a poll - sort of. >=20 > The question is: what kind of jobs do you prefer let a scripting language= do and not Ada? >=20 > The threshold is fuzzy, but usually I go with a script if=20 * I need to interact heavily with the system (e.g., moving files, directori= es, ...) * I can do everything with basic shell commands. For example, if I need to= do some math like matrix algebra I do not use a script (not entirely true.= .. Once I did this by calling octave from the script and piping into it th= e required computations... I would not advise it, though...) * It is something quite simple and/or I need it "fast and dirty" (e.g., to = do something to lots of files, but a "something" that I will not need in th= e future) so that the maintenance advantage that Ada gives you has not much= impact.=20 Sometimes in the gray area of problems too complex for a bash script, but n= ot enough to justify the investment of initial effort required by Ada, I g= o with Ruby that is, IMHO, a fair compromise.