From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: The tragedy of SQL
Date: Tue, 14 Sep 2021 17:32:26 -0700
Message-ID: <4db1c577-665d-04f6-ba25-eb74a782a8f7@aklaver.com> (raw)
In-Reply-To: <67f0b6d6-9e8d-a27e-ca7c-e91842338180@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>
On 9/14/21 12:51 PM, Mladen Gogala wrote:
> Replies in-line
>
> On 9/14/21 01:51, Guyren Howe wrote:
>> They are making a decent decision. SQL is a *fucking terrible*
>> language, which I don’t blame them for not wanting to learn.
>
> Based on what criteria?
>
>
>>
>> The whole industry, programming languages, infrastructure, everything
>> would have developed differently if relations were a natural,
>> pleasurable thing to use in any programming language. Like an Array,
>> or a Hash.
>
> Thee is nothing natural about either relations or arrays and
> hashes/dictionaries. Relations are pretty literal implementation of the
> basic set theory. Having a decent understanding of the basic set theory
> is a condition for understanding SQL. Now, we can discuss whether a
> language implementing a mathematical theory is "good" or "bad", whatever
> the meaning of "good" or "bad" in the given context. Historically, SQL
> is a good fit for the banking business and accounting and that is why it
> is still around.
>
I can see what you are saying. Still as someone that comes from a
biology background and a basic understanding of math I will say SQL has
a broader appeal. All those years of memorizing organism classifications
inadvertently led me to set theory; 'all dogs are animals, not all
animals are dogs'. Also, time spent identifying plants/critters via
dichotomous keys led me to boolean logic. The upshot is that once I got
involved with SQL databases the basics made sense. The details I am
still learning.
>
> --
> I'll speak the key, the whole key and nothing but the key, so help me Codd.
> Mladen Gogala
> Database Consultant
> Tel: (347) 321-1217
> https://dbwhisperer.wordpress.com
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, gogala.mladen@gmail.com
Subject: Re: The tragedy of SQL
In-Reply-To: <4db1c577-665d-04f6-ba25-eb74a782a8f7@aklaver.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> <4db1c577-665d-04f6-ba25-eb74a782a8f7@aklaver.com>
* 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