Re: Alter and move corresponding: was The tragedy of SQL

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Alter and move corresponding: was The tragedy of SQL
Date: 2021-09-15 18:07:33
Message-ID: e0bb46f1-ea4e-d7de-40e4-2b22447a245f@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9/15/21 11:52 AM, Steve Litt wrote:
> Gavin Flower said on Wed, 15 Sep 2021 13:49:39 +1200
>
>> Hi Michael,
> [snip]
>
>>> COBOL has strange verbs like 'move corresponding' that could
>>> accomplish complicated tasks in a few lines but you have to be
>>> careful that you knew what you were asking for!

MOVE CORRESPONDING is awesome, and a heck of a lot less dangerous than doing
your own memory management in C!!

>>> In our site that was banned as being too dangerous.
>>>
>>> And how about the 'lovely' ALTER GOTO construct???
>>>
>>> Children don't try to use these constructs at home, as even
>>> experienced adults get burnt using them!
> I never Cobolled professionally, but took 3 semesters of Cobol and
> Santa Monica Community College in Santa Monica, California USA. They
> taught us move corresponding, I used it, it was handy. I'd use it again
> if I were a Cobol professional.
>
> As far as alter, in 1981, before I became a programmer, I asked my
> Cobol Programmer friend if there was anything you could put in a
> program that would get you fired. He said yes, the alter statement :-).
> In my 3 semesters of Cobol, I never once used the Alter statement.

Jump tables are great in scripting languages which let you embed a variable
in a variable name.  Naturally, you must be careful; explicit variable names
always help...

--
Angular momentum makes the world go 'round.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2021-09-15 19:44:15 Re: The tragedy of SQL
Previous Message Gambhir Singh 2021-09-15 18:04:03 Re: Roles