• Over-Elaborate Shell Scripting

    From Lawrence D?Oliveiro@3:633/10 to All on Thursday, March 12, 2026 07:21:40
    When using a computer, laziness is a virtue. This is why we have
    command lines, to help automate the boring and repetitive tasks.

    This article <https://arstechnica.com/gadgets/2021/09/command-line-wizardry-part-two-variables-and-loops-in-bash/>
    continues the author?s intro to basic command-line concepts. But it
    repeats a failing I see all too often in shell scripting: doing
    complex parsing of the output of some command, when the command itself
    offers an option to produce something closer to the exact output you
    need.

    In this case, he is extracting the names of datasets from the ?zfs
    list? command. And while I have zero experience with ZFS, I can look
    at documentation <https://docs.oracle.com/cd/E18752_01/html/819-5461/gazsu.html>, and
    discover that the command offers the ?-o? option where you can select
    exactly that information you want it to output. It even has ?-H? to
    simplify the output format right down, specifically to make it easier
    to parse.

    Sure, it?s fun to write code. But it can be even more fun to _avoid_
    writing code. RTFM helps.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Thursday, March 12, 2026 03:42:24
    On 3/12/26 03:21, Lawrence D?Oliveiro wrote:
    When using a computer, laziness is a virtue. This is why we have
    command lines, to help automate the boring and repetitive tasks.

    This article <https://arstechnica.com/gadgets/2021/09/command-line-wizardry-part-two-variables-and-loops-in-bash/>
    continues the author?s intro to basic command-line concepts. But it
    repeats a failing I see all too often in shell scripting: doing
    complex parsing of the output of some command, when the command itself
    offers an option to produce something closer to the exact output you
    need.

    In this case, he is extracting the names of datasets from the ?zfs
    list? command. And while I have zero experience with ZFS, I can look
    at documentation <https://docs.oracle.com/cd/E18752_01/html/819-5461/gazsu.html>, and
    discover that the command offers the ?-o? option where you can select
    exactly that information you want it to output. It even has ?-H? to
    simplify the output format right down, specifically to make it easier
    to parse.

    Sure, it?s fun to write code. But it can be even more fun to _avoid_
    writing code. RTFM helps.


    Shell scripts HAVE THEIR PLACE, I've writ fairly
    long ones ... but any modern suggestion that they
    are the one and only great solution to complex
    problems - no, No, NO !

    Despite my own complaints here, Python is the better
    way to go - if possible - for complex little issues.
    Far clearer.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Thursday, March 12, 2026 09:00:18
    On 3/12/26 08:21, Lawrence D?Oliveiro wrote:
    When using a computer, laziness is a virtue. This is why we have
    command lines, to help automate the boring and repetitive tasks.

    This article

    <https://arstechnica.com/gadgets/2021/09/command-line-wizardry-part-two-variables-and-loops-in-bash/>
    continues the author?s intro to basic command-line concepts. But it
    repeats a failing I see all too often in shell scripting: doing
    complex parsing of the output of some command, when the command itself offers an option to produce something closer to the exact output you
    need.

    Right. I can only agree with you.

    The more general problem is that there's so much stuff about shell
    programming on the web but most of it is sadly of very bad quality.


    In this case, he is extracting the names of datasets from the ?zfs
    list? command. And while I have zero experience with ZFS, I can look
    at documentation <https://docs.oracle.com/cd/E18752_01/html/819-5461/gazsu.html>, and discover that the command offers the ?-o? option where you can select exactly that information you want it to output. It even has ?-H? to
    simplify the output format right down, specifically to make it easier
    to parse.

    The -o is something that I met during the 1990's on AIX (for some of
    its Unix commands; I specifically recall 'ps'). Meanwhile it made its
    way into some more commands also on other Unix systems. Given that
    output of Unix commands was historically (and still is) often awkward
    and inconsistent to parse the -o philosophy was and still is a great
    progress.

    Concerning ZFS; I'm using that meanwhile for many years now. Here my
    experience is that I don't need any own parsing; ZFS provides already
    in a sensible way and in a clear form all I need from it.


    Sure, it?s fun to write code. But it can be even more fun to _avoid_
    writing code. RTFM helps.

    Right. But on Unixes there's still a lot in a bad quality state and I
    can still hardly avoid own shell programs to automate my tasks.

    Janis

    PS: Sorry for the private email; once again fooled by a new Thunderbird installation with its stupid default GUI arrangements. - Speaking about
    bad software quality state. Hah!


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Thursday, March 12, 2026 10:59:37
    On 3/12/26 09:00, Janis Papanagnou wrote:
    On 3/12/26 08:21, Lawrence D?Oliveiro wrote:

    This article <https://arstechnica.com/gadgets/2021/09/command-line-wizardry-part-
    two-variables-and-loops-in-bash/>

    I took the time to look more closely into that link above.

    continues the author?s intro to basic command-line concepts. But it repeats a failing I see all too often in shell scripting: [...]

    Not only "a [one] failing"; it's full of bad coding practices!
    (I suggest to abstain from it.)

    Right. I can only agree with you.

    The more general problem is that there's so much stuff about shell programming on the web but most of it is sadly of very bad quality.

    It's exactly a paragon for the said many sources of bad quality.

    Janis


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Kenny McCormack@3:633/10 to All on Thursday, March 12, 2026 12:34:32
    In article <EMScnQS_gIv98y_0nZ2dnZfqn_idnZ2d@giganews.com>,
    c186282 <c186282@nnada.net> mysteriously wrote:
    ...
    Shell scripts HAVE THEIR PLACE, I've writ fairly
    long ones ... but any modern suggestion that they
    are the one and only great solution to complex
    problems - no, No, NO !

    Despite my own complaints here, Python is the better
    way to go - if possible - for complex little issues.
    Far clearer.


    This response has nothing to do with the OP.

    --
    "Insisting on perfect safety is for people who don't have the balls to live
    in the real world."

    - Mary Shafer, NASA Ames Dryden -

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Kenny McCormack@3:633/10 to All on Thursday, March 12, 2026 12:44:13
    In article <10ou2q9$1qp29$1@dont-email.me>,
    Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
    On 3/12/26 09:00, Janis Papanagnou wrote:
    On 3/12/26 08:21, Lawrence DOliveiro wrote:

    This article
    <https://arstechnica.com/gadgets/2021/09/command-line-wizardry-part-
    two-variables-and-loops-in-bash/>

    I took the time to look more closely into that link above.

    continues the authors intro to basic command-line concepts. But it
    repeats a failing I see all too often in shell scripting: [...]

    Not only "a [one] failing"; it's full of bad coding practices!
    (I suggest to abstain from it.)

    Shell scripting seems to bring out the critic in everybody. Nobody likes
    the way other people shell script.

    Or, as I discovered long ago, nobody wants to run someone else's shell
    script. What I mean is that if I hand you a piece of C code, you are quite likely to just compile it and run it, as is. Similar for most other
    languages. But shell, no. Before you will consider running it, you will
    first analyze it and then probably pretty much totally re-write it. And
    this as it should be.

    Something called "Python" (mentioned by another poster) probably falls somewhere in between.

    -- https://www.rollingstone.com/politics/politics-news/the-10-dumbest-things-ever-said-about-global-warming-200530/

    RS contributor Bill McKibben lambasted this analysis in his 2007 book, Deep Economy.
    It's nice to have microelectronics; it's necessary to have lunch, wrote McKibben.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Thursday, March 12, 2026 14:12:21
    On 12/03/2026 12:44, Kenny McCormack wrote:
    In article <10ou2q9$1qp29$1@dont-email.me>,
    Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
    On 3/12/26 09:00, Janis Papanagnou wrote:
    On 3/12/26 08:21, Lawrence DOliveiro wrote:
    >
    > This article
    > <https://arstechnica.com/gadgets/2021/09/command-line-wizardry-part- >>> two-variables-and-loops-in-bash/>

    I took the time to look more closely into that link above.

    > continues the authors intro to basic command-line concepts. But it
    > repeats a failing I see all too often in shell scripting: [...]

    Not only "a [one] failing"; it's full of bad coding practices!
    (I suggest to abstain from it.)

    Shell scripting seems to bring out the critic in everybody. Nobody likes
    the way other people shell script.

    Perhaps that is why I never ever shell script if at all avoidable.
    Like Regexp, and PERL it seems to be the province of wannabe gurus who
    cant code C.

    Or, as I discovered long ago, nobody wants to run someone else's shell script. What I mean is that if I hand you a piece of C code, you are quite likely to just compile it and run it, as is. Similar for most other languages. But shell, no. Before you will consider running it, you will first analyze it and then probably pretty much totally re-write it. And
    this as it should be.

    Something called "Python" (mentioned by another poster) probably falls somewhere in between.

    Indeed. The modern equivalent of basic or turbo pascal

    --
    "An intellectual is a person knowledgeable in one field who speaks out
    only in others...?

    Tom Wolfe


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Rich@3:633/10 to All on Thursday, March 12, 2026 15:08:33
    In comp.os.linux.misc Kenny McCormack <gazelle@shell.xmission.com> wrote:
    In article <EMScnQS_gIv98y_0nZ2dnZfqn_idnZ2d@giganews.com>,
    c186282 <c186282@nnada.net> mysteriously wrote:
    ...
    Shell scripts HAVE THEIR PLACE, I've writ fairly
    long ones ... but any modern suggestion that they
    are the one and only great solution to complex
    problems - no, No, NO !

    Despite my own complaints here, Python is the better
    way to go - if possible - for complex little issues.
    Far clearer.


    This response has nothing to do with the OP.

    Sadly, that's standard for c186282. All responses, even if partly on
    topic for a given thread, also contain seventeen unrelated tangents as
    well.

    This one just omitted the on topic part.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Kenny McCormack@3:633/10 to All on Thursday, March 12, 2026 15:22:00
    In article <10oukth$240u3$1@dont-email.me>, Rich <rich@example.invalid> wrote: ...
    Sadly, that's standard for c186282.

    Just out of curiosity, what is that (c186282) ?

    --
    In politics and in life, ignorance is not a virtue.
    -- Barack Obama --

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Kenny McCormack@3:633/10 to All on Thursday, March 12, 2026 15:29:26
    In article <10oulmo$102st$1@news.xmission.com>,
    Kenny McCormack <gazelle@shell.xmission.com> wrote:
    In article <10oukth$240u3$1@dont-email.me>, Rich <rich@example.invalid> wrote:
    ...
    Sadly, that's standard for c186282.

    Just out of curiosity, what is that (c186282) ?

    Oops. Now I see. It is the id/nym of the poster.

    Shows how little attention I pay to the names attached to posts.

    --
    The only thing Trump's made great again is Saturday Night Live.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Rich@3:633/10 to All on Thursday, March 12, 2026 16:31:40
    In comp.os.linux.misc Kenny McCormack <gazelle@shell.xmission.com> wrote:
    In article <10oukth$240u3$1@dont-email.me>, Rich <rich@example.invalid> wrote:
    ...
    Sadly, that's standard for c186282.

    Just out of curiosity, what is that (c186282) ?

    The nym that user uses as they "name".

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From John Ames@3:633/10 to All on Thursday, March 12, 2026 09:58:16
    On Thu, 12 Mar 2026 14:12:21 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    Perhaps that is why I never ever shell script if at all avoidable.
    Like Regexp, and PERL it seems to be the province of wannabe gurus
    who cant code C.

    Horses for courses. C is much more capable for general-purpose work,
    but it requires a lot more wrangling (or an external library) to do
    batch file operations effectively.

    F'rexample, I'm in the process of putting together a home-grown "static
    site generator" for use with a free host that doesn't allow server-side
    stuff like PHP; the job is to assemble complete HTML files for each
    page from header/sidebar templates and page-specific content files.

    It's totally possible to do that in C, but I'd have to either roll my
    own code or pull in non-stdlib dependencies for stuff like enumerating/
    looping over the files in a directory; shell script makes that a first-
    class language feature. And the core of the work (tacking files to each
    other) is likewise something that's easily doable in C, but provided out
    of the box in the shell (it's just what cat is designed and named for.)


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Thursday, March 12, 2026 19:23:17
    On 12.03.26 13:44, Kenny McCormack wrote:
    In article <10ou2q9$1qp29$1@dont-email.me>,
    Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
    On 3/12/26 09:00, Janis Papanagnou wrote:
    On 3/12/26 08:21, Lawrence DOliveiro wrote:
    >
    > This article
    > <https://arstechnica.com/gadgets/2021/09/command-line-wizardry-part- >>> two-variables-and-loops-in-bash/>

    I took the time to look more closely into that link above.

    > continues the authors intro to basic command-line concepts. But it
    > repeats a failing I see all too often in shell scripting: [...]

    Not only "a [one] failing"; it's full of bad coding practices!
    (I suggest to abstain from it.)

    Shell scripting seems to bring out the critic in everybody. Nobody likes
    the way other people shell script.

    Maybe. But in this case there's quite some problems with the shell
    code patterns used, violation of accepted patterns; like missing
    quoting, unstable linearisation (instead of safe arrays), useless
    use of cat, use of echo vs. printf, and some more that I forgot
    off the top of my head.


    Or, as I discovered long ago, nobody wants to run someone else's shell script. What I mean is that if I hand you a piece of C code, you are quite likely to just compile it and run it, as is. Similar for most other languages. But shell, no. Before you will consider running it, you will first analyze it and then probably pretty much totally re-write it. And
    this as it should be.

    Shell, or probably generally scripting languages, have the property
    of being able to quickly implement (small) tasks, shell is also (as
    I call it) treacherous, it looks simple but has a lot of pitfalls,
    and folks regularly fail even with the most common long experienced
    measures. Most folks you see seem to make unknowingly a distinction
    between "scripting" and "programming".

    It's easier to look into shell code - and you should look into it
    since you can so easily do dangerous things in shell - whereas for
    the compiled code you need it to be open source to inspect it, it's
    often much longer code and more difficult to spot issues.

    But with sufficient experience, by knowing safe and unsafe code
    patterns, and secondary characteristics (clear programming, flawless
    compiles, syntax checks without platform specific or other issues)
    you can often also see the quality of software packages, shell or
    otherwise, if you look into it.

    It's not the first time that I abandoned shell scripts for obvious
    quality flaws, or fixed the obvious things if it's otherwise worth
    to use it, or (as you say) take the idea and re-implement the task
    in more reliable ways.


    Something called "Python" (mentioned by another poster) probably falls somewhere in between.

    Probably because it lies somewhere between scripting and programming
    language?

    Janis


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Thursday, March 12, 2026 19:46:22
    On 12.03.26 15:12, The Natural Philosopher wrote:
    On 12/03/2026 12:44, Kenny McCormack wrote:

    Shell scripting seems to bring out the critic in everybody.ÿ Nobody likes
    the way other people shell script.

    Perhaps that is why I never ever shell script if at all avoidable.

    The application domain of shells and (for example) "C" are quite
    different. There's task that are easy done in shell where there's a
    huge and unnecessary overhead with languages like "C".

    Like Regexp, and PERL it seems to be the province of wannabe gurus who
    cant code C.

    You think that folks can only program [sophisticatedly] in shell *or*
    languages like "C"? - I'm positive that you're wrong.

    The shell language has a lot of peculiarities, though. And you need
    to learn the languages you use (shell or otherwise) in any case. Some
    don't seem to do that, though; for languages like "C" it's mandatory
    to read a textbook, it seems, while for shell I've seen that many use
    existing paragons (good or bad ones) to "learn" it or web pages like
    the one mentioned in this thread.

    Since when I started with Unix I saw most experts know "C" and shell;
    on the Unix platforms you have (and often want to use) both languages.
    With the separation from Unix, the independent development of the "C" languages, things have probably changed later.

    Regexps are a basic key feature of the Unix platforms, something that
    was long missing on other platforms. You need to learn the Regexps,
    though, with simple expressions you can do powerful things, and with
    simple inconsistencies in Regexps you can produce subtle flaws.

    Janis


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Thursday, March 12, 2026 19:03:32
    On 12/03/2026 18:46, Janis Papanagnou wrote:
    On 12.03.26 15:12, The Natural Philosopher wrote:
    On 12/03/2026 12:44, Kenny McCormack wrote:

    Shell scripting seems to bring out the critic in everybody.ÿ Nobody
    likes
    the way other people shell script.

    Perhaps that is why I never ever shell script if at all avoidable.

    The application domain of shells and (for example) "C" are quite
    different. There's task that are easy done in shell where there's a
    huge and unnecessary overhead with languages like "C".

    Like Regexp, and PERL it seems to be the province of wannabe gurus who
    cant code C.

    You think that folks can only program [sophisticatedly] in shell *or* languages like "C"? - I'm positive that you're wrong.

    The shell language has a lot of peculiarities, though. And you need
    to learn the languages you use (shell or otherwise) in any case. Some
    don't seem to do that, though; for languages like "C" it's mandatory
    to read a textbook, it seems, while for shell I've seen that many use existing paragons (good or bad ones) to "learn" it or web pages like
    the one mentioned in this thread.

    Since when I started with Unix I saw most experts know "C" and shell;
    on the Unix platforms you have (and often want to use) both languages.
    With the separation from Unix, the independent development of the "C" languages, things have probably changed later.

    Regexps are a basic key feature of the Unix platforms, something that
    was long missing on other platforms. You need to learn the Regexps,
    though, with simple expressions you can do powerful things, and with
    simple inconsistencies in Regexps you can produce subtle flaws.

    Janis

    As with SQL I have always found it quicker to do anything complex, in C,
    as it is in fact quicker than trying to do it in SQL, or regexp, both in
    terms of design time and indeed execution time.

    There are people who like to master arcane syntaxes and there are people
    who just want an efficient route to a solution.



    --
    "What do you think about Gay Marriage?"
    "I don't."
    "Don't what?"
    "Think about Gay Marriage."



    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Thursday, March 12, 2026 19:04:30
    On 12/03/2026 15:22, Kenny McCormack wrote:
    In article <10oukth$240u3$1@dont-email.me>, Rich <rich@example.invalid> wrote:
    ...
    Sadly, that's standard for c186282.

    Just out of curiosity, what is that (c186282) ?


    An arcane offshoot of Cñ...
    --
    "When a true genius appears in the world, you may know him by this sign,
    that the dunces are all in confederacy against him."

    Jonathan Swift.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Jim Jackson@3:633/10 to All on Thursday, March 12, 2026 19:38:13
    On 2026-03-12, John Ames <commodorejohn@gmail.com> wrote:
    On Thu, 12 Mar 2026 14:12:21 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    Perhaps that is why I never ever shell script if at all avoidable.
    Like Regexp, and PERL it seems to be the province of wannabe gurus
    who cant code C.

    Horses for courses. C is much more capable for general-purpose work,
    but it requires a lot more wrangling (or an external library) to do
    batch file operations effectively.

    F'rexample, I'm in the process of putting together a home-grown "static
    site generator" for use with a free host that doesn't allow server-side
    stuff like PHP; the job is to assemble complete HTML files for each
    page from header/sidebar templates and page-specific content files.

    It's totally possible to do that in C, but I'd have to either roll my
    own code or pull in non-stdlib dependencies for stuff like enumerating/ looping over the files in a directory; shell script makes that a first-
    class language feature. And the core of the work (tacking files to each other) is likewise something that's easily doable in C, but provided out
    of the box in the shell (it's just what cat is designed and named for.)


    I've found perl to be a lot more useful for that sort of thing. I
    suppose if were starting now I'd be using python. But in the 90's eprl
    was the goto scripting language for C programmers.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Thursday, March 12, 2026 20:44:00
    On 12.03.26 20:03, The Natural Philosopher wrote:

    As with SQL I have always found it quicker to do anything complex, in C,
    as it is in fact quicker than trying to do it in SQL, or regexp, both in terms of design time and indeed execution time.

    Are you saying here that if, for example, you have a pattern to match
    then you would implement that natively in "C" than in regexp?

    Presumed I understood you correctly, then, frankly, you are obviously
    just lacking the necessary expertise and blame Regular Languages (and
    their uses and users) just due to ignorance. There's nothing wrong not
    knowing every aspect of CS and IT, but your generalizing imputations
    based on that are misguided.

    Janis

    There are people who like to master arcane syntaxes and there are people
    who just want an efficient route to a solution.



    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Thursday, March 12, 2026 20:50:13
    On Thu, 12 Mar 2026 19:23:17 +0100, Janis Papanagnou wrote:

    Probably because it lies somewhere between scripting and programming language?

    No idea what ?scripting? means in this context. Does it mean the
    language is interpreted, not compiled? Yet nobody ever called BASIC a ?scripting? language back in the day -- it was always known as a
    ?programming? language.

    Perl and Python are the same.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Thursday, March 12, 2026 20:57:00
    On Thu, 12 Mar 2026 19:38:13 -0000 (UTC), Jim Jackson wrote:

    I've found perl to be a lot more useful for that sort of thing. I
    suppose if were starting now I'd be using python. But in the 90's
    eprl was the goto scripting language for C programmers.

    Perl was the one that blew away the misconception that ?interpreted
    languages are slow?. And its support for regular expressions and other
    powerful data-manipulation features was also a big step forward --
    left older interpreted languages like BASIC and REXX in the dust.

    Once that barrier was down, the way was open for other similar-level
    languages to gain popular acceptance. Like Python.

    Because, let?s face it, Perl?s accumulation of new features over time
    has been, to put it politely, ?organic? (or, less politely,
    ?unorganized?). Python, on the other hand, always had its evolution
    tempered by considerations of how new features would interact with one
    another.

    The net result was that Python?s core has become very powerful and
    versatile, yet still remaining very small. Perl had a head start of
    years or decades in accumulating a large library of useful add-on
    modules, but Python has managed to leapfrog that by now, just because
    of the sheer extensibility of the core language.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Computer Nerd Kev@3:633/10 to All on Friday, March 13, 2026 07:43:36
    In comp.os.linux.misc Kenny McCormack <gazelle@shell.xmission.com> wrote:
    In article <10ou2q9$1qp29$1@dont-email.me>,
    Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
    Not only "a [one] failing"; it's full of bad coding practices!
    (I suggest to abstain from it.)

    Shell scripting seems to bring out the critic in everybody. Nobody likes
    the way other people shell script.

    Or, as I discovered long ago, nobody wants to run someone else's shell script. What I mean is that if I hand you a piece of C code, you are quite likely to just compile it and run it, as is. Similar for most other languages. But shell, no. Before you will consider running it, you will first analyze it and then probably pretty much totally re-write it. And
    this as it should be.

    I do read them often (though not nearly all of them, including those
    installed with Linux distros and their packages), but I don't often
    feel the need to rewrite large parts of shell scripts just for the
    sake of style. There are many style arguments with C code too, but
    maybe it's just above your barrier of time and effort to fix those
    for the sake of perceived elegance.

    Something called "Python" (mentioned by another poster) probably falls somewhere in between.

    Python in my experience enforces the re-writing step by inevitably
    requiring a version that's either newer or older than what you have
    available. Although since rewriting in Python only sets you up for
    the same thing later on, I rewrite as a Bash script, assuming
    there are no alternatives available in a sane language.

    --
    __ __
    #_ < |\| |< _#

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Dan Espen@3:633/10 to All on Thursday, March 12, 2026 17:58:45
    gazelle@shell.xmission.com (Kenny McCormack) writes:

    In article <EMScnQS_gIv98y_0nZ2dnZfqn_idnZ2d@giganews.com>,
    c186282 <c186282@nnada.net> mysteriously wrote:
    ...
    Shell scripts HAVE THEIR PLACE, I've writ fairly
    long ones ... but any modern suggestion that they
    are the one and only great solution to complex
    problems - no, No, NO !

    Despite my own complaints here, Python is the better
    way to go - if possible - for complex little issues.
    Far clearer.

    This response has nothing to do with the OP.

    I know nothing about zfs or the "zfs" command, but Python is loaded with interfaces. Perhaps the "pyzfs" package does provide the "better way to
    go".

    https://pyzfs.readthedocs.io/en/latest/

    --
    Dan Espen

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Computer Nerd Kev@3:633/10 to All on Friday, March 13, 2026 07:59:02
    In comp.os.linux.misc John Ames <commodorejohn@gmail.com> wrote:
    On Thu, 12 Mar 2026 14:12:21 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:
    Perhaps that is why I never ever shell script if at all avoidable.
    Like Regexp, and PERL it seems to be the province of wannabe gurus
    who cant code C.

    Horses for courses. C is much more capable for general-purpose work,
    but it requires a lot more wrangling (or an external library) to do
    batch file operations effectively.

    F'rexample, I'm in the process of putting together a home-grown "static
    site generator" for use with a free host that doesn't allow server-side
    stuff like PHP; the job is to assemble complete HTML files for each
    page from header/sidebar templates and page-specific content files.

    I've done the same thing using PHP, running the script from the
    command-line to generate the static site. I've done it in Bash
    earlier too, but I ran into things that are just much easier in
    PHP since it's built for generating HTML.

    It's totally possible to do that in C, but I'd have to either roll my
    own code or pull in non-stdlib dependencies for stuff like enumerating/ looping over the files in a directory; shell script makes that a first-
    class language feature. And the core of the work (tacking files to each other) is likewise something that's easily doable in C, but provided out
    of the box in the shell (it's just what cat is designed and named for.)

    I have seen a static site generator written in C, but I don't think
    it was anyone's idea of elegance. A C program that only needs to
    run once (for its author, at least) can cut a _lot_ of corners!

    I am sometimes tempted to use C for dynamic sites, though many
    claim PHP is just as fast these days anyway.

    --
    __ __
    #_ < |\| |< _#

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Friday, March 13, 2026 03:05:48
    On 12.03.26 21:50, Lawrence D?Oliveiro wrote:
    On Thu, 12 Mar 2026 19:23:17 +0100, Janis Papanagnou wrote:

    Probably because it lies somewhere between scripting and programming
    language?

    No idea what ?scripting? means in this context. Does it mean the
    language is interpreted, not compiled?

    You are absolutely right that scripting is a somewhat fuzzy term. But
    there have been made some attempts to identify some commonly accepted
    criteria for "scripting". (There's still no clear definition.)

    In that light please interpret my statement as "what is commonly named
    as scripting"; having some commonly accepted properties of "scripting languages" in mind.

    Personally I say (for example) that I'm doing "shell programming" (not
    shell scripting) to emphasize that it's necessary to not only quickly
    hack a (maybe even throwaway) script but to apply the accepted methods
    of serious software development.

    Yet nobody ever called BASIC a
    ?scripting? language back in the day -- it was always known as a ?programming? language.

    One of the first BASIC dialects I programmed in was tokenized on the
    fly, including syntax checks when committing a line, and it was then
    compiled. So there was no reason (in that respect) to call it anything
    other than a programming languages.

    Frankly, I don't recall when I heard the term "scripting" for the first
    time and in what (language-)context.

    But one aspect - and that should have been clear from the context of
    my previous post - is that in shell you type in the code, and then you
    execute it by interpreting it; you don't compile it, you have no static
    type checking, not even a complete syntax check (unless you explicitly
    invoke a separate explicit syntax check step).

    Perl and Python are the same.

    Sure. A friend of mine is an expert in Perl and he's programming with
    it as I described it above for shell programming.

    Janis


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Friday, March 13, 2026 03:00:19
    On Fri, 13 Mar 2026 03:05:48 +0100, Janis Papanagnou wrote:

    One of the first BASIC dialects I programmed in was tokenized on the
    fly, including syntax checks when committing a line, and it was then compiled. So there was no reason (in that respect) to call it
    anything other than a programming languages.

    Other than the fact that it didn?t actually compile to machine
    language.

    Perl and Python do the same sort of thing.

    But one aspect - and that should have been clear from the context of
    my previous post - is that in shell you type in the code, and then
    you execute it by interpreting it; you don't compile it, you have no
    static type checking, not even a complete syntax check (unless you
    explicitly invoke a separate explicit syntax check step).

    See my previous post on the distinction between ?command? languages
    and ?programming? languages. Shell script being a ?command? language
    is a more meaningful distinction from ?programming? languages than
    trying to separate ?programming? languages from ?scripting? ones.

    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Thursday, March 12, 2026 23:35:18
    On 3/12/26 23:00, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 03:05:48 +0100, Janis Papanagnou wrote:

    One of the first BASIC dialects I programmed in was tokenized on the
    fly, including syntax checks when committing a line, and it was then
    compiled. So there was no reason (in that respect) to call it
    anything other than a programming languages.

    Other than the fact that it didn?t actually compile to machine
    language.

    Perl and Python do the same sort of thing.

    But one aspect - and that should have been clear from the context of
    my previous post - is that in shell you type in the code, and then
    you execute it by interpreting it; you don't compile it, you have no
    static type checking, not even a complete syntax check (unless you
    explicitly invoke a separate explicit syntax check step).

    See my previous post on the distinction between ?command? languages
    and ?programming? languages. Shell script being a ?command? language
    is a more meaningful distinction from ?programming? languages than
    trying to separate ?programming? languages from ?scripting? ones.

    IMHO, anything that makes the box "do something"
    useful is a 'programming language' - compiled,
    interpreted or guided by magic fairies.

    Bash is a 'programming language' (though nasty), so
    is Python, so are 'C' and FORTRAN.


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Friday, March 13, 2026 04:59:19
    On 13.03.26 04:00, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 03:05:48 +0100, Janis Papanagnou wrote:

    One of the first BASIC dialects I programmed in was tokenized on the
    fly, including syntax checks when committing a line, and it was then
    compiled. So there was no reason (in that respect) to call it
    anything other than a programming languages.

    Other than the fact that it didn?t actually compile to machine
    language.

    I'm not sure I understand your statement correctly. The BASIC system
    I was talking about *did* have a compile to the machine instructions
    step involved that you triggered explicitly by a 'compile' command.


    Perl and Python do the same sort of thing.

    Last time I used Perl I just ran the perl command on a program file
    (if I recall correctly). That was certainly different from the BASIC
    case I described, where syntax checking was interactively done, and
    where an explicit compile step was necessary.


    But one aspect - and that should have been clear from the context of
    my previous post - is that in shell you type in the code, and then
    you execute it by interpreting it; you don't compile it, you have no
    static type checking, not even a complete syntax check (unless you
    explicitly invoke a separate explicit syntax check step).

    See my previous post on the distinction between ?command? languages
    and ?programming? languages. Shell script being a ?command? language
    is a more meaningful distinction from ?programming? languages than
    trying to separate ?programming? languages from ?scripting? ones.

    The Bolsky/Korn's book about The Kornshell has the subtitle "Command
    and Programming Language". - For me that makes perfectly sense; to
    not necessarily have to (exclusively) distinguish between these two
    termini, of course depending on the actual language.

    Janis


    --- PyGate Linux v1.5.12
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Friday, March 13, 2026 01:32:36
    On 3/12/26 23:59, Janis Papanagnou wrote:
    On 13.03.26 04:00, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 03:05:48 +0100, Janis Papanagnou wrote:

    One of the first BASIC dialects I programmed in was tokenized on the
    fly, including syntax checks when committing a line, and it was then
    compiled. So there was no reason (in that respect) to call it
    anything other than a programming languages.

    Other than the fact that it didn?t actually compile to machine
    language.

    I'm not sure I understand your statement correctly. The BASIC system
    I was talking about *did* have a compile to the machine instructions
    step involved that you triggered explicitly by a 'compile' command.\\


    I did a few large-ish projects using BASIC/BASCOM
    back in the early PC days. So, apparently, BASIC
    was not a computer language - but WAS when I compiled
    it all five minutes later ??? :-)

    Sorry, some want to see a big diff here, I just see
    "organized way to get a box to DO stuff" - which
    includes scripts, compiled or what-the-fuck.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Keith Thompson@3:633/10 to All on Friday, March 13, 2026 03:20:57
    Janis Papanagnou <janis_papanagnou@hotmail.com> writes:
    [...]
    Last time I used Perl I just ran the perl command on a program file
    (if I recall correctly). That was certainly different from the BASIC
    case I described, where syntax checking was interactively done, and
    where an explicit compile step was necessary.
    [...]

    Yes, or you can use a "#!" line and just run the perl script directly
    as a command (at least on Unix-like systems). But in either case,
    there's a lot of stuff going on behind the scenes, including
    compilation from Perl to an internal form that's then interpreted.

    One interesting distinction is that if a Perl or Python
    script/program has a syntax error on the last line, it won't execute.
    A shell script (sh, bash, ksh, zsh, etc.) won't flag the error
    until execution reaches the last line.

    I do not claim that this distinction defines the difference between
    scripting languages and programming languages. That difference
    is not well defined.

    --
    Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
    void Void(void) { Void(); } /* The recursive call of the void */

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 11:32:12
    On 12/03/2026 19:44, Janis Papanagnou wrote:
    On 12.03.26 20:03, The Natural Philosopher wrote:

    As with SQL I have always found it quicker to do anything complex, in
    C, as it is in fact quicker than trying to do it in SQL, or regexp,
    both in terms of design time and indeed execution time.

    Are you saying here that if, for example, you have a pattern to match
    then you would implement that natively in "C" than in regexp?

    Beyond a very limited complexity, yes.
    It's very hard to documents a regexp . Or in fact a complex SQL statement.
    And in the latter case I replaced a complex SQL statement by a series of simple statements and some C and the program ran at least 10 times
    faster. (I never found out how long the SQL version ran because I
    aborted it after 6 hours. The C example ran and gave me debugging
    output, and once I had fined tuned it, it took about 40 minutes )


    Presumed I understood you correctly, then, frankly, you are obviously
    just lacking the necessary expertise and blame Regular Languages (and
    their uses and users) just due to ignorance.

    Its not a matter of ignorance. That's what wannabe code gurus like to
    say, because to them 'guru knowledge' is more important than getting the
    job done on time, on budget and leaving code that can actually be
    maintained.

    My point being exactly that to gain the expertise does not lead to a practicable solution *anyway*.



    There's nothing wrong not
    knowing every aspect of CS and IT, but your generalizing imputations
    based on that are misguided.

    Unfortunately you have just made my point for me.

    I have always been under pressure to produce efficient working
    comprehensible and maintainable code in a short time.

    Regexps simply don't fit the bill. Nor do overly complex SQL statements.
    I tried both and gave up after I had already taken longer to produce
    code that ran way slower than a custom solution in C did

    There's even a video about it

    "How on Earth does ^.?$|^(..+?)\1+$ produce primes?"

    https://www.youtube.com/watch?v=5vbk0TwkokM

    18 minutes of documentation to explain one regular expression

    The same algorithm would be just a few lines of python or C and could
    include comments


    --
    Civilization exists by geological consent, subject to change without notice.
    ? Will Durant


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 11:37:07
    On 12/03/2026 20:18, rbowman wrote:
    On Thu, 12 Mar 2026 19:38:13 -0000 (UTC), Jim Jackson wrote:

    I've found perl to be a lot more useful for that sort of thing. I
    suppose if were starting now I'd be using python. But in the 90's eprl
    was the goto scripting language for C programmers.

    That was the '90s... It took me a while to warm up to Python but it
    became the scripting language for GIS applications. It certainly was
    better than VBA.

    Pike is good too but never caught on.

    PERL was an advance on shell. But frankly I don't like either much

    My experience is colored by being an employer of coders, and the ones
    that knew C produced more in less time than the ones who had mastered
    regexps and PERL.

    And other people could maintain their code, too.


    --
    In a Time of Universal Deceit, Telling the Truth Is a Revolutionary Act.

    - George Orwell


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 11:38:13
    On 12/03/2026 21:43, Computer Nerd Kev wrote:
    Python in my experience enforces the re-writing step by inevitably
    requiring a version that's either newer or older than what you have available. Although since rewriting in Python only sets you up for
    the same thing later on, I rewrite as a Bash script, assuming
    there are no alternatives available in a sane language.

    That at least shows *some* pragmatism


    --
    ?It is hard to imagine a more stupid decision or more dangerous way of
    making decisions than by putting those decisions in the hands of people
    who pay no price for being wrong.?

    Thomas Sowell


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 11:44:08
    On 12/03/2026 21:59, Computer Nerd Kev wrote:
    I have seen a static site generator written in C, but I don't think
    it was anyone's idea of elegance. A C program that only needs to
    run once (for its author, at least) can cut a_lot_ of corners!

    I use PHP and javaScript because they are ubiquitous - and totally
    horrible too.
    Some of my PHP calls C code to do the heavy lifting. PHPs implementation
    of the mySQL API is deeply flawed.

    I could, and probably ought to, use C more than php. But its a nasty
    quick hack that works well *enough*. And can be documented as well
    javaScript sucxks worse than an industrial vacuum cleaner, but there
    isn't anything else I know of to implement cient side complexity



    I am sometimes tempted to use C for dynamic sites, though many
    claim PHP is just as fast these days anyway.
    Php is nowhere near as fast as C, but it is for sure *fast enough*. Mostly



    --
    ?It is hard to imagine a more stupid decision or more dangerous way of
    making decisions than by putting those decisions in the hands of people
    who pay no price for being wrong.?

    Thomas Sowell


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 11:52:56
    On 13/03/2026 02:05, Janis Papanagnou wrote:
    Frankly, I don't recall when I heard the term "scripting" for the first
    time and in what (language-)context.

    For me the *language* was called *Shell Script*.

    'Script' being a fuzzy analogue of 'interpreted'

    And then 'script' became a generalised term for fast interpreted
    scripts like PERL.

    BUT as with many things, there is no clear definition.

    --
    ?I know that most men, including those at ease with problems of the greatest complexity, can seldom accept even the simplest and most
    obvious truth if it be such as would oblige them to admit the falsity of conclusions which they have delighted in explaining to colleagues, which
    they have proudly taught to others, and which they have woven, thread by thread, into the fabric of their lives.?

    ? Leo Tolstoy


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 12:03:21
    On 13/03/2026 03:35, c186282 wrote:
    IMHO, anything that makes the box "do something"
    ÿ useful is a 'programming language' - compiled,
    ÿ interpreted or guided by magic fairies.

    +1.

    As my old coding buddy used to say 'after all, it's only bits, in
    silicon' (we were writing ROM code).

    And the aim of the game was to arrive at clean simple comprehensible and maintainable workmanlike code that did that job you were being paid to do.

    High level languages were simply a more efficient way to do it than
    Assembler. But we did that, too.


    ÿ Bash is a 'programming language' (though nasty), so
    ÿ is Python, so are 'C' and FORTRAN.

    Indeed. And if people spend more time learning how to use the tools they
    have, rather than buying and learning how to use ever new and exciting ones....

    I have some treated wood gateposts...now there are all sorts of ways to
    dig postholes and fix posts in them..but it was a warm early summer day
    so I settled in with spade, which got me down a foot or so, and then the remaining three feet of the holes was dug by lying on the ground and
    using a garden trowel.

    It took a few hours, but the posts went in snug fitting holes packed in
    with surplus clay, and they haven't budged in 10 years.




    --
    In todays liberal progressive conflict-free education system, everyone
    gets full Marx.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 12:07:09
    On 13/03/2026 05:32, c186282 wrote:
    On 3/12/26 23:59, Janis Papanagnou wrote:
    On 13.03.26 04:00, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 03:05:48 +0100, Janis Papanagnou wrote:

    One of the first BASIC dialects I programmed in was tokenized on the
    fly, including syntax checks when committing a line, and it was then
    compiled. So there was no reason (in that respect) to call it
    anything other than a programming languages.

    Other than the fact that it didn?t actually compile to machine
    language.

    I'm not sure I understand your statement correctly. The BASIC system
    I was talking about *did* have a compile to the machine instructions
    step involved that you triggered explicitly by a 'compile' command.\\


    ÿ I did a few large-ish projects using BASIC/BASCOM
    ÿ back in the early PC days. So, apparently, BASIC
    ÿ was not a computer language - but WAS when I compiled
    ÿ it all five minutes later ???ÿ :-)

    ÿ Sorry, some want to see a big diff here, I just see
    ÿ "organized way to get a box to DO stuff" - which
    ÿ includes scripts, compiled or what-the-fuck.

    Back in the day I came across and used enormous accounting systems
    written in BASIC.

    Peachtree software was a commercial suite written in BASIC IIRC.


    --
    The higher up the mountainside
    The greener grows the grass.
    The higher up the monkey climbs
    The more he shows his arse.

    Traditional


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 12:14:35
    On 13/03/2026 10:20, Keith Thompson wrote:
    I do not claim that this distinction defines the difference between
    scripting languages and programming languages. That difference
    is not well defined.

    In the end its mere convention.

    To my mind scripting tends to be less complete and more specialised. And probably interpreted. And designed to use standalone *programs* to do
    the heavy lifting.

    Whereas 'language' implies more general application and uses *libraries*
    to do the grunt work.

    Scripts were at the inception ways to invoke batch processing using precompiled programs as components.

    And certainly PERL as well as shell was suitable for that.

    Python, Basic and php all use built in *libraries*.

    I am not claiming that is an exact definition, but its how my mind
    separates the terms...



    --
    Any fool can believe in principles - and most of them do!




    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Friday, March 13, 2026 12:48:56
    On 3/13/26 12:07, The Natural Philosopher wrote:
    On 13/03/2026 05:32, c186282 wrote:
    On 3/12/26 23:59, Janis Papanagnou wrote:
    On 13.03.26 04:00, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 03:05:48 +0100, Janis Papanagnou wrote:

    One of the first BASIC dialects I programmed in was tokenized on the >>>>> fly, including syntax checks when committing a line, and it was then >>>>> compiled. So there was no reason (in that respect) to call it
    anything other than a programming languages.

    Other than the fact that it didn?t actually compile to machine
    language.

    I'm not sure I understand your statement correctly. The BASIC system
    I was talking about *did* have a compile to the machine instructions
    step involved that you triggered explicitly by a 'compile' command.\\


    ÿÿ I did a few large-ish projects using BASIC/BASCOM
    ÿÿ back in the early PC days. So, apparently, BASIC
    ÿÿ was not a computer language - but WAS when I compiled
    ÿÿ it all five minutes later ???ÿ :-)

    ÿÿ Sorry, some want to see a big diff here, I just see
    ÿÿ "organized way to get a box to DO stuff" - which
    ÿÿ includes scripts, compiled or what-the-fuck.

    Back in the day I came across and used enormous accounting systems
    written in BASIC.


    VAX Basic was widely used on major banking systems. Excel/VBA was
    everywhere.

    Chruch-Turing Thesis - different languages are just syntactic sugar.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Friday, March 13, 2026 12:57:39
    On 3/13/26 11:32, The Natural Philosopher wrote:
    On 12/03/2026 19:44, Janis Papanagnou wrote:
    On 12.03.26 20:03, The Natural Philosopher wrote:

    As with SQL I have always found it quicker to do anything complex, in
    C, as it is in fact quicker than trying to do it in SQL, or regexp,
    both in terms of design time and indeed execution time.

    Are you saying here that if, for example, you have a pattern to match
    then you would implement that natively in "C" than in regexp?

    Beyond a very limited complexity, yes.
    It's very hard to documents a regexp . Or in fact a complex SQL statement. And in the latter case I replaced a complex SQL statement by a series of simple statements and some C and the program ran at least 10 times
    faster. (I never found out how long the SQL version ran because I
    aborted it after 6 hours. The C example ran and gave me debugging
    output, and once I had fined tuned it, it took about 40 minutes )


    People teach or learn SQL from an ivory tower perspective.

    Real life SQL, try to limit a big table query to a max of four tables
    (ideally :-)), + use temporary tables and or cursors.



    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 13:33:42
    On 13/03/2026 12:57, Pancho wrote:
    On 3/13/26 11:32, The Natural Philosopher wrote:
    On 12/03/2026 19:44, Janis Papanagnou wrote:
    On 12.03.26 20:03, The Natural Philosopher wrote:

    As with SQL I have always found it quicker to do anything complex,
    in C, as it is in fact quicker than trying to do it in SQL, or
    regexp, both in terms of design time and indeed execution time.

    Are you saying here that if, for example, you have a pattern to match
    then you would implement that natively in "C" than in regexp?

    Beyond a very limited complexity, yes.
    It's very hard to documents a regexp . Or in fact a complex SQL
    statement.
    And in the latter case I replaced a complex SQL statement by a series
    of simple statements and some C and the program ran at least 10 times
    faster. (I never found out how long the SQL version ran because I
    aborted it after 6 hours. The C example ran and gave me debugging
    output, and once I had fined tuned it, it took about 40 minutes )


    People teach or learn SQL from an ivory tower perspective.

    Real life SQL, try to limit a big table query to a max of four tables (ideally :-)), + use temporary tables and or cursors.

    + use a bit of C code instead. The temporary table then becomes an array
    in C.

    Obviously in the limit this breaks if you run out of memory, but 4
    gigabytes of data is a hell of a lot.

    It was enough to specify the name, address, postcode, borough, county
    and country for every single person in Great Britain....

    Which I had as flat files, and wanted as a normalised data base.




    --
    If you tell a lie big enough and keep repeating it, people will
    eventually come to believe it. The lie can be maintained only for such
    time as the State can shield the people from the political, economic
    and/or military consequences of the lie. It thus becomes vitally
    important for the State to use all of its powers to repress dissent, for
    the truth is the mortal enemy of the lie, and thus by extension, the
    truth is the greatest enemy of the State.

    Joseph Goebbels





    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From John Ames@3:633/10 to All on Friday, March 13, 2026 08:00:00
    On 13 Mar 2026 07:59:02 +1000
    not@telling.you.invalid (Computer Nerd Kev) wrote:

    I've done the same thing using PHP, running the script from the
    command-line to generate the static site. I've done it in Bash
    earlier too, but I ran into things that are just much easier in
    PHP since it's built for generating HTML.

    Oh, that's a clever notion! Hadn't thought of doing it that way.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 16:03:21
    On 13/03/2026 15:00, John Ames wrote:
    On 13 Mar 2026 07:59:02 +1000
    not@telling.you.invalid (Computer Nerd Kev) wrote:

    I've done the same thing using PHP, running the script from the
    command-line to generate the static site. I've done it in Bash
    earlier too, but I ran into things that are just much easier in
    PHP since it's built for generating HTML.

    Oh, that's a clever notion! Hadn't thought of doing it that way.

    There is no point in using PHP to generate a *static* site. It is after
    all for *active* sites.


    --
    "If you don?t read the news paper, you are un-informed. If you read the
    news paper, you are mis-informed."

    Mark Twain


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From John Ames@3:633/10 to All on Friday, March 13, 2026 09:26:10
    On Fri, 13 Mar 2026 16:03:21 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    Oh, that's a clever notion! Hadn't thought of doing it that way.

    There is no point in using PHP to generate a *static* site. It is
    after all for *active* sites.

    Allows you to use the same language across the board. A bit unorthodox,
    but I can see the use of it.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 19:02:02
    On 13/03/2026 16:26, John Ames wrote:
    On Fri, 13 Mar 2026 16:03:21 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    Oh, that's a clever notion! Hadn't thought of doing it that way.

    There is no point in using PHP to generate a *static* site. It is
    after all for *active* sites.

    Allows you to use the same language across the board. A bit unorthodox,
    but I can see the use of it.


    But 90% of my php is in fact straight HTML.

    --
    There is nothing a fleet of dispatchable nuclear power plants cannot do
    that cannot be done worse and more expensively and with higher carbon emissions and more adverse environmental impact by adding intermittent renewable energy.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From John Ames@3:633/10 to All on Friday, March 13, 2026 12:21:29
    On Fri, 13 Mar 2026 19:02:02 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    Allows you to use the same language across the board. A bit
    unorthodox, but I can see the use of it.

    But 90% of my php is in fact straight HTML.

    Ditto - but adding PHP (or another preprocessor utility) to the mix
    allows me to write the common sections (header, footer, nav. sidebar)
    once, in a separate file, rather than having to update them manually
    across every single page every time I need to change something. It's
    not *as* useful when it's not happening automagically server-side, but
    it still saves a lot of tedium.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 20:56:47
    On 13/03/2026 19:21, John Ames wrote:
    On Fri, 13 Mar 2026 19:02:02 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    Allows you to use the same language across the board. A bit
    unorthodox, but I can see the use of it.

    But 90% of my php is in fact straight HTML.

    Ditto - but adding PHP (or another preprocessor utility) to the mix
    allows me to write the common sections (header, footer, nav. sidebar)
    once, in a separate file, rather than having to update them manually
    across every single page every time I need to change something. It's
    not *as* useful when it's not happening automagically server-side, but
    it still saves a lot of tedium.

    You can do the same with javaScript


    --
    "First, find out who are the people you can not criticise. They are your oppressors."
    - George Orwell


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Friday, March 13, 2026 22:02:29
    On 2026-03-13 13:14, The Natural Philosopher wrote:
    On 13/03/2026 10:20, Keith Thompson wrote:
    I do not claim that this distinction defines the difference between
    scripting languages and programming languages.ÿ That difference
    is not well defined.

    In the end its mere convention.

    To my mind scripting tends to be less complete and more specialised. And probably interpreted. And designed to use standalone *programs* to do
    the heavy lifting.

    Whereas 'language' implies more general application and uses *libraries*
    to do the grunt work.

    The term 'language' has already very specific characteristics; it
    is about vocabularies and grammar, syntax and semantics, and more.
    (In its common meaning and in its variant as programming language.)

    [...]

    I am not claiming that is an exact definition, but its how my mind
    separates the terms...

    (Here your thinking confuses already well defined termini.)

    We should not muddy long existing clear terms but focus on the yet
    unclear terms we spoke about, to make clear what we personally mean
    for example by "scripting", since that term is not well-defined as
    was already stated.

    Janis


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 21:08:52
    On 13/03/2026 19:33, rbowman wrote:
    On Fri, 13 Mar 2026 11:32:12 +0000, The Natural Philosopher wrote:

    It's very hard to documents a regexp . Or in fact a complex SQL
    statement.
    And in the latter case I replaced a complex SQL statement by a series of
    simple statements and some C and the program ran at least 10 times
    faster.
    (I never found out how long the SQL version ran because I aborted it
    after 6 hours. The C example ran and gave me debugging output, and once
    I had fined tuned it, it took about 40 minutes )

    We had one support person who spent his spare time crafting SQL
    statements. They would fail on older DB2 systems that had a 4K limit on a statement size. The best part is with a chain of
    CONCAT(CONCAT(CONCAT(.... when a SUBSTR or something fails the whole mess returns NULL.

    Exactly. And since the statement is atomic, and very nested, as with
    regexp, its very hard to comment or debug.

    At least with a procedural language, you can break it into steps...that
    can be tested and debugged and documented separately.

    And relying on the SQL engine to do optimisation when it doesn't
    necessarily know what you are doing anyway, is a bit optimistic


    --
    ?It is hard to imagine a more stupid decision or more dangerous way of
    making decisions than by putting those decisions in the hands of people
    who pay no price for being wrong.?

    Thomas Sowell


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From John Ames@3:633/10 to All on Friday, March 13, 2026 14:14:31
    On Fri, 13 Mar 2026 20:56:47 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    Ditto - but adding PHP (or another preprocessor utility) to the mix
    allows me to write the common sections (header, footer, nav.
    sidebar) once, in a separate file, rather than having to update
    them manually across every single page every time I need to change something. It's not *as* useful when it's not happening
    automagically server-side, but it still saves a lot of tedium.

    You can do the same with javaScript

    IMNSHO the use of client-side scripting to load and display static page
    content should be considered Objectively Wrong, so...nope.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Friday, March 13, 2026 22:37:36
    On 2026-03-13 12:32, The Natural Philosopher wrote:
    On 12/03/2026 19:44, Janis Papanagnou wrote:
    On 12.03.26 20:03, The Natural Philosopher wrote:

    As with SQL I have always found it quicker to do anything complex, in
    C, as it is in fact quicker than trying to do it in SQL, or regexp,
    both in terms of design time and indeed execution time.

    Are you saying here that if, for example, you have a pattern to match
    then you would implement that natively in "C" than in regexp?

    Beyond a very limited complexity, yes.

    One point with repexps is that with them you are able to control
    complexity for a very specific class of tasks; tasks that can be
    described within a Chomsky-3 grammar or expressed by finite state
    machines. A comparable explicitly programmed programming language
    code (say, with a context free grammar) for a respective regexp is
    usually clumsier.

    It's very hard to documents a regexp .

    A regexp is an expression from a language. It is a clear definition
    with rules simpler than of a programming language.

    But you can of course document the regexps you write if it gets too
    complicated (for you or generally). You can also compose regexps to
    manage complexity. Or name them. - You have all options, similar to
    the possibilities that you have in typical programming languages.
    And, as with programming languages, you should learn the language!
    But Regular Expressions are much simpler. While you may find slight
    differences in the meta-syntax the basic principle is the same.

    [snip SQL topic]


    Presumed I understood you correctly, then, frankly, you are obviously
    just lacking the necessary expertise and blame Regular Languages (and
    their uses and users) just due to ignorance.

    Its not a matter of ignorance. That's what wannabe code gurus like to
    say, because to them 'guru knowledge' is more important than getting the
    job done on time, on budget and leaving code that can actually be maintained.

    (I already noticed that you have a very peculiar image in mind.)

    I spoke about the necessity to learn languages, whether regular or
    context free. And that lacking knowledge is just ignorance.

    I'm aware that typical regular expression syntaxes appear cryptic.
    (And I understand the reluctance to learn them.)

    (To move that/your problem to "gurus" you met in your life appears
    to be nothing but a red herring and is obviously only demonstrating
    your unwillingness to learn or understand regexps.)


    My point being exactly that to gain the expertise does not lead to a practicable solution *anyway*.

    Within the naturally given domain of Regular Languages you can use
    them to quickly create usable (practicable) solutions in appropriate requirement contexts. (I do that all the time. They're really very
    useful.)

    There's nothing wrong not
    knowing every aspect of CS and IT, but your generalizing imputations
    based on that are misguided.

    Unfortunately you have just made my point for me.

    I have always been under pressure to produce efficientÿ working comprehensible and maintainable code in a short time.

    And regular expressions are one part of it. - Of course, if you don't
    know them, how to use them, what they are for, it may be a hindrance
    to use them efficiently. - As said; you have to learn them. It's not
    different to other things in IT you have to learn. (You don't get it
    for free, by divine inspiration, or else.)


    Regexps simply don't fit the bill. Nor do overly complex SQL statements.
    I tried both and gave up after I had already taken longer to produce
    code that ran way slower than a custom solution in C did

    There's even a video about it

    "How on Earth does ^.?$|^(..+?)\1+$ produce primes?"

    (This is not a Regular Expression; it uses back references. Just BTW.)


    https://www.youtube.com/watch?v=5vbk0TwkokM

    18 minutes of documentation to explain one regular expression

    The same algorithm would be just a few lines of python or C and could include comments

    It wouldn't occur to me to use regexps to create (or match) primes.

    I suggest to not use fancy Youtube videos but a book or basic tutorial
    if you want to get knowledge on that topic.

    Janis


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Computer Nerd Kev@3:633/10 to All on Saturday, March 14, 2026 07:51:39
    In comp.os.linux.misc John Ames <commodorejohn@gmail.com> wrote:
    On 13 Mar 2026 07:59:02 +1000
    not@telling.you.invalid (Computer Nerd Kev) wrote:
    I've done the same thing using PHP, running the script from the
    command-line to generate the static site. I've done it in Bash
    earlier too, but I ran into things that are just much easier in
    PHP since it's built for generating HTML.

    Oh, that's a clever notion! Hadn't thought of doing it that way.

    Check out the ob_* functions for redirecting stdout to a file, then
    you can write code similar to that for dynamic pages.

    Admittedly I did spend hours debugging an issue which turned to be
    where I'd got my file descriptor variables mixed up, which probably
    would have been more noticable with the syntax in Bash.

    --
    __ __
    #_ < |\| |< _#

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 21:52:38
    On 13/03/2026 21:14, John Ames wrote:
    On Fri, 13 Mar 2026 20:56:47 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    Ditto - but adding PHP (or another preprocessor utility) to the mix
    allows me to write the common sections (header, footer, nav.
    sidebar) once, in a separate file, rather than having to update
    them manually across every single page every time I need to change
    something. It's not *as* useful when it's not happening
    automagically server-side, but it still saves a lot of tedium.

    You can do the same with javaScript

    IMNSHO the use of client-side scripting to load and display static page content should be considered Objectively Wrong, so...nope.


    Christ! There is so much religion here the odour of sanctity is making
    me vomit...


    --
    ?The ultimate result of shielding men from the effects of folly is to
    fill the world with fools.?

    Herbert Spencer


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Friday, March 13, 2026 21:54:01
    On 13/03/2026 21:37, Janis Papanagnou wrote:
    On 2026-03-13 12:32, The Natural Philosopher wrote:
    On 12/03/2026 19:44, Janis Papanagnou wrote:
    On 12.03.26 20:03, The Natural Philosopher wrote:

    As with SQL I have always found it quicker to do anything complex,
    in C, as it is in fact quicker than trying to do it in SQL, or
    regexp, both in terms of design time and indeed execution time.

    Are you saying here that if, for example, you have a pattern to match
    then you would implement that natively in "C" than in regexp?

    Beyond a very limited complexity, yes.

    One point with repexps is that with them you are able to control
    complexity for a very specific class of tasks; tasks that can be
    described within a Chomsky-3 grammar or expressed by finite state
    machines. A comparable explicitly programmed programming language
    code (say, with a context free grammar) for a respective regexp is
    usually clumsier.

    It's very hard to documents a regexp .

    A regexp is an expression from a language. It is a clear definition
    with rules simpler than of a programming language.

    But you can of course document the regexps you write if it gets too complicated (for you or generally). You can also compose regexps to
    manage complexity. Or name them. - You have all options, similar to
    the possibilities that you have in typical programming languages.
    And, as with programming languages, you should learn the language!
    But Regular Expressions are much simpler. While you may find slight differences in the meta-syntax the basic principle is the same.

    [snip SQL topic]


    Presumed I understood you correctly, then, frankly, you are obviously
    just lacking the necessary expertise and blame Regular Languages (and
    their uses and users) just due to ignorance.

    Its not a matter of ignorance. That's what wannabe code gurus like to
    say, because to them 'guru knowledge' is more important than getting
    the job done on time, on budget and leaving code that can actually be
    maintained.

    (I already noticed that you have a very peculiar image in mind.)

    I spoke about the necessity to learn languages, whether regular or
    context free. And that lacking knowledge is just ignorance.

    I'm aware that typical regular expression syntaxes appear cryptic.
    (And I understand the reluctance to learn them.)

    (To move that/your problem to "gurus" you met in your life appears
    to be nothing but a red herring and is obviously only demonstrating
    your unwillingness to learn or understand regexps.)


    My point being exactly that to gain the expertise does not lead to a
    practicable solution *anyway*.

    Within the naturally given domain of Regular Languages you can use
    them to quickly create usable (practicable) solutions in appropriate requirement contexts. (I do that all the time. They're really very
    useful.)

    There's nothing wrong not
    knowing every aspect of CS and IT, but your generalizing imputations
    based on that are misguided.

    Unfortunately you have just made my point for me.

    I have always been under pressure to produce efficientÿ working
    comprehensible and maintainable code in a short time.

    And regular expressions are one part of it. - Of course, if you don't
    know them, how to use them, what they are for, it may be a hindrance
    to use them efficiently. - As said; you have to learn them. It's not different to other things in IT you have to learn. (You don't get it
    for free, by divine inspiration, or else.)


    Regexps simply don't fit the bill. Nor do overly complex SQL
    statements. I tried both and gave up after I had already taken longer
    to produce code that ran way slower than a custom solution in C did

    There's even a video about it

    "How on Earth does ^.?$|^(..+?)\1+$ produce primes?"

    (This is not a Regular Expression; it uses back references. Just BTW.)


    https://www.youtube.com/watch?v=5vbk0TwkokM

    18 minutes of documentation to explain one regular expression

    The same algorithm would be just a few lines of python or C and could
    include comments

    It wouldn't occur to me to use regexps to create (or match) primes.

    I suggest to not use fancy Youtube videos but a book or basic tutorial
    if you want to get knowledge on that topic.

    Janis


    Another fucking guru.
    Bye

    --
    ?The ultimate result of shielding men from the effects of folly is to
    fill the world with fools.?

    Herbert Spencer


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Friday, March 13, 2026 21:58:16
    On Fri, 13 Mar 2026 12:57:39 +0000, Pancho wrote:

    Real life SQL, try to limit a big table query to a max of four
    tables (ideally :-)), + use temporary tables and or cursors.

    Real life SQL, use the EXPLAIN statement to find out where the
    bottlenecks are in your query, and fix them.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Friday, March 13, 2026 21:59:47
    On Fri, 13 Mar 2026 12:48:56 +0000, Pancho wrote:

    VAX Basic was widely used on major banking systems. Excel/VBA was
    everywhere.

    Not any more, thank goodness.

    Chruch-Turing Thesis - different languages are just syntactic sugar.

    Ever wonder why we don?t write real-world computer programs using
    Turing?s universal tape machine?

    There?s a reason why ?computer science? and ?mathematics? are quite
    different subjects ...

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From John Ames@3:633/10 to All on Friday, March 13, 2026 15:03:59
    On Fri, 13 Mar 2026 21:52:38 +0000
    The Natural Philosopher <tnp@invalid.invalid> wrote:

    IMNSHO the use of client-side scripting to load and display static
    page content should be considered Objectively Wrong, so...nope.

    Christ! There is so much religion here the odour of sanctity is
    making me vomit...

    As I'm an ocean and a continent removed from your end of the exchange,
    that's fine by me ;P


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Computer Nerd Kev@3:633/10 to All on Saturday, March 14, 2026 08:06:43
    In comp.os.linux.misc The Natural Philosopher <tnp@invalid.invalid> wrote:
    On 13/03/2026 15:00, John Ames wrote:
    On 13 Mar 2026 07:59:02 +1000
    not@telling.you.invalid (Computer Nerd Kev) wrote:
    I've done the same thing using PHP, running the script from the
    command-line to generate the static site. I've done it in Bash
    earlier too, but I ran into things that are just much easier in
    PHP since it's built for generating HTML.

    Oh, that's a clever notion! Hadn't thought of doing it that way.

    There is no point in using PHP to generate a *static* site. It is after
    all for *active* sites.

    It comes with all the functions to make generating HTML easier and
    you get the ability to put PHP code inside HTML with <?php ... ?>.
    It's certainly closer to being designed for the task than Bash, or
    especially C with its bare-bones string handling.

    --
    __ __
    #_ < |\| |< _#

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Friday, March 13, 2026 22:08:23
    On Fri, 13 Mar 2026 14:14:31 -0700, John Ames wrote:

    IMNSHO the use of client-side scripting to load and display static
    page content should be considered Objectively Wrong ...

    I once took a web page created by a friend, displaying a static table
    of information (about CPU processors), and reduced it from nearly a
    megabyte in size down to a little over 100K. I put all the table info
    into JavaScript structures, and had code that ran on page load to
    generate the display tables from that.

    I also added dynamic sorting features, so you could rearrange the
    table by the values of selected columns by clicking on the column
    headings. The sorting code knew something about the units used for
    numeric values in certain columns, so it could, e.g. interpret ?1M? as
    greater than ?2K?.

    All the work was done in the browser.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Friday, March 13, 2026 23:01:19
    On 3/13/26 21:58, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 12:57:39 +0000, Pancho wrote:

    Real life SQL, try to limit a big table query to a max of four
    tables (ideally :-)), + use temporary tables and or cursors.

    Real life SQL, use the EXPLAIN statement to find out where the
    bottlenecks are in your query, and fix them.

    Yeah, in the late 1980s, my goal for career advancement was to learn how
    to interpret query plans. I never really did. I mean I sometimes used
    them to spot simple stuff like a missing index, but normally they
    weren't that useful.

    I was just watching a political YouTube thing with Yanis Varoufakis. He reckoned the West was losing in the Ukraine war because they
    deindustrialised, couldn't actually manufacture weapons. Our economies
    had become dominated by people with MBAs. People who were taught
    academic stuff but lacked real practical experience of actually getting
    stuff done. Suggesting SQL problems should be fixed with Query Execution
    Plans feels a bit like an MBA response.



    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Friday, March 13, 2026 23:01:35
    On 3/13/26 21:59, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 12:48:56 +0000, Pancho wrote:

    VAX Basic was widely used on major banking systems. Excel/VBA was
    everywhere.

    Not any more, thank goodness.

    Chruch-Turing Thesis - different languages are just syntactic sugar.

    Ever wonder why we don?t write real-world computer programs using
    Turing?s universal tape machine?


    No, I like syntactic sugar.

    There?s a reason why ?computer science? and ?mathematics? are quite
    different subjects ...

    Ok, I don't understand that comment. Are Turing Machines mathematics or
    are they Computer Science?

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Friday, March 13, 2026 23:07:00
    On Fri, 13 Mar 2026 23:01:19 +0000, Pancho wrote:

    On 3/13/26 21:58, Lawrence D?Oliveiro wrote:

    On Fri, 13 Mar 2026 12:57:39 +0000, Pancho wrote:

    Real life SQL, try to limit a big table query to a max of four
    tables (ideally :-)), + use temporary tables and or cursors.

    Real life SQL, use the EXPLAIN statement to find out where the
    bottlenecks are in your query, and fix them.

    Yeah, in the late 1980s, my goal for career advancement was to learn how
    to interpret query plans. I never really did. I mean I sometimes used
    them to spot simple stuff like a missing index, but normally they
    weren't that useful.

    I thought EXPLAIN was something that went back to the beginnings of
    SQL. Hard to imagine a DBMS being useful in the real world without it.

    I was just watching a political YouTube thing with Yanis Varoufakis.
    He reckoned the West was losing in the Ukraine war because they deindustrialised, couldn't actually manufacture weapons.

    The US has the weapons, it just has its own internal preoccupations (particularly religious ones) to deal with, which don?t necessarily
    align with the rest of the so-called ?West?. Like this stupid
    distraction with Iran right now.

    Like it or not, the Europeans have to learn to be more independent of
    the US. It means leaving that oh-so-pleasant post-World-War-II comfort
    zone, that they have become addicted to over the last half-century or
    so.

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Nuno Silva@3:633/10 to All on Friday, March 13, 2026 23:09:16
    On 2026-03-13, Pancho wrote:

    On 3/13/26 21:59, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 12:48:56 +0000, Pancho wrote:

    VAX Basic was widely used on major banking systems. Excel/VBA was
    everywhere.

    Not any more, thank goodness.

    Chruch-Turing Thesis - different languages are just syntactic sugar.

    Ever wonder why we don?t write real-world computer programs using
    Turing?s universal tape machine?


    No, I like syntactic sugar.

    There?s a reason why ?computer science? and ?mathematics? are quite
    different subjects ...

    Ok, I don't understand that comment. Are Turing Machines mathematics
    or are they Computer Science?

    They're computer science which is mathematics.

    The complexity or simplicity or convenience or lack thereof of using
    Turing's machine definition is probably irrelevant here. I suppose the
    point Pancho wanted to allude at was precisely that the
    platform/language doesn't matter to determine what's doable or not, at
    least provided that the languages involved are Turing-complete.

    --
    Nuno Silva

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Pancho@3:633/10 to All on Friday, March 13, 2026 23:17:07
    On 3/13/26 13:33, The Natural Philosopher wrote:
    On 13/03/2026 12:57, Pancho wrote:
    On 3/13/26 11:32, The Natural Philosopher wrote:
    On 12/03/2026 19:44, Janis Papanagnou wrote:
    On 12.03.26 20:03, The Natural Philosopher wrote:

    As with SQL I have always found it quicker to do anything complex,
    in C, as it is in fact quicker than trying to do it in SQL, or
    regexp, both in terms of design time and indeed execution time.

    Are you saying here that if, for example, you have a pattern to match
    then you would implement that natively in "C" than in regexp?

    Beyond a very limited complexity, yes.
    It's very hard to documents a regexp . Or in fact a complex SQL
    statement.
    And in the latter case I replaced a complex SQL statement by a series
    of simple statements and some C and the program ran at least 10 times
    faster. (I never found out how long the SQL version ran because I
    aborted it after 6 hours. The C example ran and gave me debugging
    output, and once I had fined tuned it, it took about 40 minutes )


    People teach or learn SQL from an ivory tower perspective.

    Real life SQL, try to limit a big table query to a max of four tables
    (ideally :-)), + use temporary tables and or cursors.

    + use a bit of C code instead. The temporary table then becomes an array
    in C.


    Yep by cursors, I meant using a for each loop in a language like C.

    Obviously in the limit this breaks if you run out of memory, but 4
    gigabytes of data is a hell of a lot.


    As I recall you didn't actually get 4 GB in 32 bit machines. Sometimes
    it wasn't enough.

    It was enough to specify the name, address,ÿ postcode, borough, county
    and country for every single person in Great Britain....

    Which I had asÿ flat files, and wanted as a normalised data base.





    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Saturday, March 14, 2026 01:21:22
    On Fri, 13 Mar 2026 23:17:07 +0000, Pancho wrote:

    Yep by cursors, I meant using a for each loop in a language like C.

    Some languages (like Python) have iterators, which are a natural fit
    for mechanisms that retrieve a query result a record (or a few
    records) at a time, without having to fit them all in memory at once.

    E.g. here?s a convenience wrapper which uses the APSW wrapper for
    SQLite in Python to construct a cursor, execute a query, and then
    iterate over the query results, after optionally applying some mapping
    function to them (e.g. turning a result tuple into a field-value
    mapping) -- all in one simple call:

    def db_iter(conn, cmd, values = None, mapfn = lambda x : x) :
    "executes cmd on a new cursor from connection conn and yields" \
    " the results in turn."
    for item in conn.cursor().execute(cmd, values) :
    yield mapfn(item)
    #end for
    #end db_iter

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Saturday, March 14, 2026 04:00:55
    On 2026-03-13 22:54, The Natural Philosopher wrote:

    Another fucking guru.

    Your general stance was already obvious.

    Janis

    Bye



    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Friday, March 13, 2026 23:26:41
    On 3/13/26 22:35, rbowman wrote:
    On Fri, 13 Mar 2026 12:21:29 -0700, John Ames wrote:

    On Fri, 13 Mar 2026 19:02:02 +0000 The Natural Philosopher
    <tnp@invalid.invalid> wrote:

    Allows you to use the same language across the board. A bit
    unorthodox, but I can see the use of it.

    But 90% of my php is in fact straight HTML.

    Ditto - but adding PHP (or another preprocessor utility) to the mix
    allows me to write the common sections (header, footer, nav. sidebar)
    once, in a separate file, rather than having to update them manually
    across every single page every time I need to change something. It's not
    *as* useful when it's not happening automagically server-side, but it
    still saves a lot of tedium.

    There is a learning curve but in Python the Flask framework pulls in Jinja
    as the templating engine.

    https://jinja.palletsprojects.com/en/stable/templates/#template-
    inheritance

    We had a programmer who loved PHP (Personal Home Page). I dipped into the code a couple of times trying to do minor fixes and it wasn't pretty.

    Aww ... PHP is OK .. not all *that* different from 'C'.
    However it can be writ, well ... badly.

    If you need a web page to DO SHIT other than just sit
    there and look pretty then you need PHP. I often used
    those 'make yer own page' apps/CMS - cheap - to set up
    the HTML/pages ... the annoying stuff ... and then
    used PHP to add IQ. Worked well, fairly quick. Found
    Joomla to be maybe the best compromise of features,
    though there is a bit of a learning curve compared
    to, say, WordPress.

    Ok, hate to say the name, JavaScript works too ...

    The big 'personal' advantage of PHP is that it
    makes the SERVER do most of the work whereas
    the others burn YOUR cycles.

    Had a web page that asked for a password ... and
    if you failed it ran a JS bit that did lots of
    trig/float stuff in a tight loop - while showing
    a woodcut from Dante's Inferno. Yer fan would
    instantly shift to max gear and the browsers
    would start screaming about overtaxing content :-)


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Bobbie Sellers@3:633/10 to All on Friday, March 13, 2026 21:32:55


    On 3/13/26 20:08, rbowman wrote:
    On Fri, 13 Mar 2026 23:07:00 -0000 (UTC), Lawrence D?Oliveiro wrote:


    The US has the weapons, it just has its own internal preoccupations
    (particularly religious ones) to deal with, which don?t necessarily
    align with the rest of the so-called ?West?. Like this stupid
    distraction with Iran right now.

    That goes back to the Reagan era. There were several highly placed people whose game plan was to get all the Jews in Israel to fulfill prophecy and bring on Armageddon and the Second Coming. I think assholes like Huckabee are still on that page.

    Gibbon came to the conclusion that one of the main causes for the fall of
    the Roman Empire was Christianity. That may be pertinent to the American Empire too. Why Europeans imported an Asian messiah escapes me.


    Like it or not, the Europeans have to learn to be more independent of
    the US. It means leaving that oh-so-pleasant post-World-War-II comfort
    zone, that they have become addicted to over the last half-century or
    so.

    If the Europeans want to rattle their sabers it would help if they had
    some sabers that weren't rusty and dull. Props to Meloni for saying 'Screw this.' She has bigger balls than Starmer but that's a low bar.
    Muggeseggele describes his equipment.

    https://en.wikipedia.org/wiki/Muggeseggele

    Europeans did not import, that religion except for members
    of the ruling class who might have been, in the Pagan religions of
    the time sacrificed to return fertility. or good weather to the land.
    They had good reasons to accept an already sacrificed savior to
    keep their own skins intact.
    Other nobles might be squeezed out of the goodies but with
    a conversion to Christianity they might overturn the upper classes.
    Some non-converted families were burned alive in their homes.

    When the Senators became Bishops they chose to institute
    a class system which made sure that shoemaker's sons would stick
    with Dad's last and that the Farmers would not leave the land.
    Exception were made to educate what the Church saw as desirable
    members of society. Usually payment was involved from the
    family to the Church to feed and educate the children who would
    become monks and/or priests. Similarly when a woman became
    a nun her family would pay or if she was wealthy in her own
    endow the institution with her dowry.

    But Rome exported Christianity and so did Constantinople and
    shoved it down the throat of the rest of their Empire.

    bliss

    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Saturday, March 14, 2026 02:35:05
    On 3/14/26 00:59, rbowman wrote:
    On Fri, 13 Mar 2026 23:26:41 -0400, c186282 wrote:

    If you need a web page to DO SHIT other than just sit there and look
    pretty then you need PHP. I often used those 'make yer own page'
    apps/CMS - cheap - to set up the HTML/pages ... the annoying stuff
    ... and then used PHP to add IQ. Worked well, fairly quick. Found
    Joomla to be maybe the best compromise of features, though there
    is a
    bit of a learning curve compared to, say, WordPress.

    Never used it. Our SPA used Angular. The browser based apps I did
    prior to
    the map being incorporated into the Angular project used Node.js/
    Express.js on the backend and the Esri Javascript 3.x API on the fontend
    for the map pieces.

    There are a variety of page builders. Some are very
    simple, stuff like WordPress/Joomla fall in the middle.
    However page layout - what/where/pretty-colors - tends
    to be the Most Annoying bit. You can waste a LOT of
    time trying to get it right by yourself.

    However such pages are STUPID ... so PHP is needed
    to add IQ.

    PHP is not all-powerful ... hell, try to get it to
    do anything off the webroot, gotta be creative !
    However it's a LOT better than nothing.

    Did a web app where I didn't want 'them' to have
    much of anything to attack. The "real" web pages
    were hidden off the root. Some PHP trix generated
    a 'fake', temporary, image of the page where the
    real code was off the root. After x-minutes it
    would just be disappeared ... no URL or anything
    to get back to it.

    I did a web app on the Pi yesterday. The Pi reads a I2C DHT11 sensor to
    get the inside temperature and humidity and publishes it so I can get the data in the browser on my main machine rather than switching to the Pi. Tomorrow I'll probably expand it to query NOAA for the outside
    temperature
    and humidity and add it to the page. Python/Flask.

    PIs are great ... but you don't build Industrial Strength
    web pages for them. By the time you make them safe for
    an outwards-facing server, well, the speed issues come up.

    fwiw, since the Flask package is included in the Pi's system site
    packages
    I'm not in a venv. Also I spun off a process using subprocess.Popen("python", "dht_simple.py") with no problem. The
    subprocess does the actual hardware read and updates the html.

    Flask is OK ... not gonna knock it. DO like Python
    abilities too, beats the crap out of other 'script'
    languages. However I still would not do "Industrial"
    using Python. OK for more limited spheres however.

    I suppose PHP was better than FrontPage that used millions of
    non-breaking
    spaces to format a page. Like Cobol there is still a lot of it around. However if I had a kid in college I would not advise them to use PHP.

    https://kinsta.com/blog/php-vs-angular/

    Well, PHP isn't COBOL (I know, I used to do COBOL apps
    in the Ancient World). I think of PHP as a relatively
    easy, readable, way to add IQ to HTML pages. It's not
    a BAD lang, you can do ALMOST anything with it.

    probably tl;dr. Synopsis:

    "The Angular framework works excellent for building large-scale apps with complexity and need of scalability.

    PHP is an old player, and it?s still very much in the game. It?s a good, low-cost option for you to develop a small business website, a portfolio site, or even an ecommerce store."

    Correct - do NOT piss on PHP. It was made for a
    particular, valuable, niche purpose and still
    serves that well and simply.

    If you can program 'C' or Pascal then you can
    program PHP with No Problems.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Saturday, March 14, 2026 04:10:20
    On 3/13/26 23:19, rbowman wrote:
    On Fri, 13 Mar 2026 21:59:47 -0000 (UTC), Lawrence D?Oliveiro wrote:

    On Fri, 13 Mar 2026 12:48:56 +0000, Pancho wrote:

    VAX Basic was widely used on major banking systems. Excel/VBA was
    everywhere.

    Not any more, thank goodness.

    Chruch-Turing Thesis - different languages are just syntactic sugar.

    Ever wonder why we don?t write real-world computer programs using
    Turing?s universal tape machine?

    There?s a reason why ?computer science? and ?mathematics? are quite
    different subjects ...

    'Computer science' is ambiguous and in some cases refers to rarefied abstractions that are fairly useless. There should be 'practical
    programming' or some other discipline that I don't think falls under mathematics.

    I think that goes back to the '60s. RPI and many other colleges did not
    have a CS program. I forget what the course designation was for FORTRAN IV programming but they didn't know what to do with it and put it in the math department.

    Apropos, Tony Hoare died last week but Quicksort lives on.

    "Computer Science" has very little do do with
    practical apps. It's closer to, but not quite,
    Pure Math and Stats. It CAN inform practical apps,
    but, really, not so much these days.

    Employers need not hire CS people, waste of money.

    CS *may* have some utility in the developing quantum
    realm however. We'll see.

    As for 'over-elaborate shell scripts' ... seen many,
    written a few. Today it's MUCH better to do the same
    thing in Python. MUCH more readable, comprehensible,
    straight-up capable.

    Yes, I've bitched about Python here, recently, but
    it's still mostly much better than Bash or CSH.
    Those shells were built-up over time ... adding
    ever more weird symbols and syntatic oddities to
    expand the 'language' until they make NO sense
    except for the simplest things.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Saturday, March 14, 2026 06:29:33
    On 3/13/26 19:09, Nuno Silva wrote:
    On 2026-03-13, Pancho wrote:

    On 3/13/26 21:59, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 12:48:56 +0000, Pancho wrote:

    VAX Basic was widely used on major banking systems. Excel/VBA was
    everywhere.

    Not any more, thank goodness.

    Chruch-Turing Thesis - different languages are just syntactic sugar.

    Ever wonder why we don?t write real-world computer programs using
    Turing?s universal tape machine?


    No, I like syntactic sugar.

    There?s a reason why ?computer science? and ?mathematics? are quite
    different subjects ...

    Ok, I don't understand that comment. Are Turing Machines mathematics
    or are they Computer Science?

    They're computer science which is mathematics.

    The complexity or simplicity or convenience or lack thereof of using
    Turing's machine definition is probably irrelevant here. I suppose the
    point Pancho wanted to allude at was precisely that the
    platform/language doesn't matter to determine what's doable or not, at
    least provided that the languages involved are Turing-complete.


    Is 'Turing Complete' even relevant now ???

    Computerdom kind of started "Wild West" and now
    seems to have returned to that.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Saturday, March 14, 2026 12:30:54
    On 14/03/2026 03:08, rbowman wrote:
    If the Europeans want to rattle their sabers it would help if they had
    some sabers that weren't rusty and dull.

    Is that why Trump has requested a battalion of anti drone drones and
    operators from Ukraine? I guess he hadn't any cards left to play...


    --
    ?Some people like to travel by train because it combines the slowness of
    a car with the cramped public exposure of ?an airplane.?

    Dennis Miller



    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Saturday, March 14, 2026 12:36:21
    On 13/03/2026 23:01, Pancho wrote:
    On 3/13/26 21:59, Lawrence D?Oliveiro wrote:
    On Fri, 13 Mar 2026 12:48:56 +0000, Pancho wrote:

    VAX Basic was widely used on major banking systems. Excel/VBA was
    everywhere.

    Not any more, thank goodness.

    Chruch-Turing Thesis - different languages are just syntactic sugar.

    Ever wonder why we don?t write real-world computer programs using
    Turing?s universal tape machine?


    No, I like syntactic sugar.

    There?s a reason why ?computer science? and ?mathematics? are quite
    different subjects ...

    Ok, I don't understand that comment. Are Turing Machines mathematics or
    are they Computer Science?

    No problemo. Just remember the wheel was invented long before anyone calculated the value of Pi.


    --
    There is nothing a fleet of dispatchable nuclear power plants cannot do
    that cannot be done worse and more expensively and with higher carbon emissions and more adverse environmental impact by adding intermittent renewable energy.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Saturday, March 14, 2026 12:38:55
    On 14/03/2026 02:35, rbowman wrote:
    We had a programmer who loved PHP (Personal Home Page). I dipped into the code a couple of times trying to do minor fixes and it wasn't pretty.

    PHP is as ugly as fuck. So is javaScript.

    But they work. And are widely supported,

    Chainsaws are also ugly as fuck.,


    --
    Civilization exists by geological consent, subject to change without notice.
    ? Will Durant


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Saturday, March 14, 2026 13:02:00
    On 14/03/2026 03:19, rbowman wrote:
    On Fri, 13 Mar 2026 21:59:47 -0000 (UTC), Lawrence D?Oliveiro wrote:

    On Fri, 13 Mar 2026 12:48:56 +0000, Pancho wrote:

    VAX Basic was widely used on major banking systems. Excel/VBA was
    everywhere.

    Not any more, thank goodness.

    Chruch-Turing Thesis - different languages are just syntactic sugar.

    Ever wonder why we don?t write real-world computer programs using
    Turing?s universal tape machine?

    There?s a reason why ?computer science? and ?mathematics? are quite
    different subjects ...

    'Computer science' is ambiguous and in some cases refers to rarefied abstractions that are fairly useless. There should be 'practical
    programming' or some other discipline that I don't think falls under mathematics.

    It's called 'software engineering'.

    There are books on it., No mention of algorithms, or languages. Plenty
    of mention of source file simplicity, debugging techniques, functional decomposition, software project management, how to deal with
    asynchronicity, source code control, ....etc.

    I skimmed books like that in the university bookshops. I never bought
    more than one comp sci book, and by the time I skimmed the softare
    engineering book, I already knew its contents.

    I think that goes back to the '60s. RPI and many other colleges did not
    have a CS program. I forget what the course designation was for FORTRAN IV programming but they didn't know what to do with it and put it in the math department.

    Programming was all self taught by intrelligent people and what they
    learnt in practical terms became software engineering.

    I had a GF who decided that a degree in chemistry only led to a job in
    an explosives factory, so she joined an IBM code house and learnt COBOL
    and indeed software engineering. IBM was damned good on the organisation
    of big software projects.

    I taught myself Z80 assembler, and as a hardware engineer, it all made
    perfect sense.

    No compsci involved in either of our careers.



    --
    Of what good are dead warriors? ? Warriors are those who desire battle
    more than peace. Those who seek battle despite peace. Those who thump
    their spears on the ground and talk of honor. Those who leap high the
    battle dance and dream of glory ? The good of dead warriors, Mother, is
    that they are dead.
    Sheri S Tepper: The Awakeners.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Janis Papanagnou@3:633/10 to All on Saturday, March 14, 2026 15:28:42
    On 2026-03-14 09:10, c186282 wrote:
    On 3/13/26 23:19, rbowman wrote:

    Apropos, Tony Hoare died last week but Quicksort lives on.

    Oh! - Thanks for the info; I missed it.


    ÿ "Computer Science" has very little do do with
    ÿ practical apps. It's closer to, but not quite,
    ÿ Pure Math and Stats. It CAN inform practical apps,
    ÿ but, really, not so much these days.

    This is plain wrong! (I have to suppose that you haven't
    learned CS if you are uttering such nonsense. - Or else;
    where have you learned "your CS"?) You have obviously no
    idea about its topics. - Jesus! It's really been a very
    very long time that I've heard such utter nonsense spread!


    ÿ Employers need not hire CS people, waste of money.

    And we can see the quality degradation of such decisions.


    ÿ CS *may* have some utility in the developing quantum
    ÿ realm however. We'll see.

    This is still mostly only a research topic.

    ÿ [...]

    ÿ Yes, I've bitched about Python here, recently, but
    ÿ it's still mostly much better than Bash or CSH.
    ÿ Those shells were built-up over time ... adding
    ÿ ever more weird symbols and syntatic oddities to
    ÿ expand the 'language' until they make NO sense
    ÿ except for the simplest things.

    You obviously have little knowledge about shells. POSIX
    shells (ksh, bash, zsh, etc.) have a huge standardized
    stable base. While historically they have added sensible
    features, you see that these had to a large degree found
    their way from one shell to the others even where going
    beyond the standardized POSIX base. (And Csh is neither
    advised for programming nor is there any stable single
    version in the first place.)

    Janis


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From John Ames@3:633/10 to All on Monday, March 16, 2026 08:21:32
    On 14 Mar 2026 02:35:23 GMT
    rbowman <bowman@montana.com> wrote:

    We had a programmer who loved PHP (Personal Home Page). I dipped into
    the code a couple of times trying to do minor fixes and it wasn't
    pretty.

    Definitely would not class it as one of my favorite languages (and I've
    heard tell that it was even jankier in the Bad Old Days,) but for
    simple HTML preprocessor duties it does the job well enough. If I were
    trying to build any kind of large-scale Web application I'd probably be
    more inclined to think about my options and choice of tooling.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From The Natural Philosopher@3:633/10 to All on Monday, March 16, 2026 17:48:14
    On 16/03/2026 15:21, John Ames wrote:
    On 14 Mar 2026 02:35:23 GMT
    rbowman <bowman@montana.com> wrote:

    We had a programmer who loved PHP (Personal Home Page). I dipped into
    the code a couple of times trying to do minor fixes and it wasn't
    pretty.

    Definitely would not class it as one of my favorite languages (and I've
    heard tell that it was even jankier in the Bad Old Days,) but for
    simple HTML preprocessor duties it does the job well enough. If I were
    trying to build any kind of large-scale Web application I'd probably be
    more inclined to think about my options and choice of tooling.

    I thought it was Peters Home Page, whatever...

    PHP gets ugly, at scale. But at least it has include files. And the
    ability to call another program.

    Or you can write libraries for it in C.


    --
    Labour - a bunch of rich people convincing poor people to vote for rich
    people by telling poor people that "other" rich people are the reason
    they are poor.

    Peter Thompson


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From c186282@3:633/10 to All on Tuesday, March 17, 2026 02:08:20
    On 3/16/26 11:21, John Ames wrote:
    On 14 Mar 2026 02:35:23 GMT
    rbowman <bowman@montana.com> wrote:

    We had a programmer who loved PHP (Personal Home Page). I dipped into
    the code a couple of times trying to do minor fixes and it wasn't
    pretty.

    Definitely would not class it as one of my favorite languages (and I've
    heard tell that it was even jankier in the Bad Old Days,) but for
    simple HTML preprocessor duties it does the job well enough. If I were
    trying to build any kind of large-scale Web application I'd probably be
    more inclined to think about my options and choice of tooling.

    PHP is perfectly good and suited for adding IQ to
    web apps. Don't knock it.

    And it's not THAT hard to program ... closer to 'C'
    in philosophy and structure. Did a lot of it and
    will again as-needed.


    --- PyGate Linux v1.5.13
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)