pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Alter and move corresponding: was The tragedy of SQL
Date: Wed, 15 Sep 2021 13:07:33 -0500
Message-ID: <e0bb46f1-ea4e-d7de-40e4-2b22447a245f@gmail.com> (raw)
In-Reply-To: <20210915125241.35179374@mydesk.domain.cxm>
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>
	<05ac2565-b692-c73f-93f0-3bbf738e3bfc@gmail.com>
	<CAOzAquJF1S0tZ+7Xk5_DZ=tE_hweRo-P6=2Xw68W_KO0ZrK4hA@mail.gmail.com>
	<bf51952b-d3bd-7dde-b500-264aa021c5c6@archidevsys.co.nz>
	<CAOzAquLE35PVi_jipipktAi-aAG9U36wEuVEk-NWL4b3WMfw4A@mail.gmail.com>
	<3d4db5f5-376e-8467-a435-e5f45d96991a@archidevsys.co.nz>
	<20210915125241.35179374@mydesk.domain.cxm>

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.





view thread (9+ messages)  latest in thread

Message-ID: <e0bb46f1-ea4e-d7de-40e4-2b22447a245f@gmail.com>
Permalink:  ../e0bb46f1-ea4e-d7de-40e4-2b22447a245f@gmail.com/
Also on:    postgresql.org/message-id/e0bb46f1-ea4e-d7de-40e4-2b22447a245f@gmail.com

 · 

reply

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: ronljohnsonjr@gmail.com
  Subject: Re: Alter and move corresponding: was The tragedy of SQL
  In-Reply-To: <e0bb46f1-ea4e-d7de-40e4-2b22447a245f@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> <05ac2565-b692-c73f-93f0-3bbf738e3bfc@gmail.com> <CAOzAquJF1S0tZ+7Xk5_DZ=tE_hweRo-P6=2Xw68W_KO0ZrK4hA@mail.gmail.com> <bf51952b-d3bd-7dde-b500-264aa021c5c6@archidevsys.co.nz> <CAOzAquLE35PVi_jipipktAi-aAG9U36wEuVEk-NWL4b3WMfw4A@mail.gmail.com> <3d4db5f5-376e-8467-a435-e5f45d96991a@archidevsys.co.nz> <20210915125241.35179374@mydesk.domain.cxm> <e0bb46f1-ea4e-d7de-40e4-2b22447a245f@gmail.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