From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: The tragedy of SQL
Date: Wed, 15 Sep 2021 00:29:03 +0200
Message-ID: <YUEiL1WIfX1h1WB1@hjp.at> (raw)
In-Reply-To: <d1a134d7-84bf-83db-65a7-33fa64d7bdaf@gmail.com>
References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark>
<d61c6062-32ae-4892-8993-9ad932e10b91@Spark>
<CANW1aT-Q4e7X9zbaxs+r4ccGtZh8W+CA5=ozX6hDhaCrAzbsTQ@mail.gmail.com>
<a6a667c4-0b3c-4505-9530-1c5e54d6e7b0@Spark>
<67f0b6d6-9e8d-a27e-ca7c-e91842338180@gmail.com>
<62d7895c-a008-4d48-94d5-48aeec23eaf5@Spark>
<d1a134d7-84bf-83db-65a7-33fa64d7bdaf@gmail.com>
On 2021-09-14 17:01:40 -0400, Mladen Gogala wrote:
> On 9/14/21 15:57, Guyren Howe wrote:
> > Verbosity. Redundancy. Lack of orthogonality. Resemblance to English.
>
> Verbosity is a feature, as well as the resemblance to English. The language
> is meant to be understood by accountants. Once upon a time people were using
> something called "COmmon Business Oriented Language" which was also very
> verbose, for the same reason: it had to be understandable to the business
> people.
Let's rephrase that: Back in the 1960s people thought programming would
be easier (programs easier to understand and to write) if the syntax
looked similar to English prose.
That belief was mistaken. While a very simple COBOL program may be
readable for a layperson (while even a very simple C program is not, and
a Haskell or APL program looks like complete gibberish), they still
can't write it, and even the readability advantage quickly vanishes for
more complex programs, because while COBOL may look like English, it
isn't.
SQL is significantly younger than COBOL but its design was led by the
same belief that making the language look like ordinary English would
make it easy to learn.
(It also wasn't the last. A few years back I saw a language for
specifying test cases designed for "ordinary people". Again, it looked
like English, but wasn't).
Superficial syntax is in my experience the smallest hurdle. It's
semantics that people struggle with.
hp
PS: COBOL is still in use.
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: hjp-pgsql@hjp.at
Subject: Re: The tragedy of SQL
In-Reply-To: <YUEiL1WIfX1h1WB1@hjp.at>
References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark> <d61c6062-32ae-4892-8993-9ad932e10b91@Spark> <CANW1aT-Q4e7X9zbaxs+r4ccGtZh8W+CA5=ozX6hDhaCrAzbsTQ@mail.gmail.com> <a6a667c4-0b3c-4505-9530-1c5e54d6e7b0@Spark> <67f0b6d6-9e8d-a27e-ca7c-e91842338180@gmail.com> <62d7895c-a008-4d48-94d5-48aeec23eaf5@Spark> <d1a134d7-84bf-83db-65a7-33fa64d7bdaf@gmail.com> <YUEiL1WIfX1h1WB1@hjp.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox