pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Alter and move corresponding: was The tragedy of SQL
9+ messages / 6 participants
[nested] [flat]

* Alter and move corresponding: was The tragedy of SQL
@ 2021-09-15 16:52 Steve Litt <slitt@troubleshooters.com>
  2021-09-15 17:47 ` Re: Alter and move corresponding: was The tragedy of SQL Michael Nolan <htfoot@gmail.com>
  2021-09-15 18:07 ` Re: Alter and move corresponding: was The tragedy of SQL Ron <ronljohnsonjr@gmail.com>
  2021-09-16 23:01 ` Re: Alter and move corresponding: was The tragedy of SQL Gavin Flower <GavinFlower@archidevsys.co.nz>
  0 siblings, 3 replies; 9+ messages in thread

From: Steve Litt @ 2021-09-15 16:52 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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!  
>
>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.

SteveT

Steve Litt 
Spring 2021 featured book: Troubleshooting Techniques of the Successful
Technologist http://www.troubleshooters.com/techniques





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Alter and move corresponding: was The tragedy of SQL
  2021-09-15 16:52 Alter and move corresponding: was The tragedy of SQL Steve Litt <slitt@troubleshooters.com>
@ 2021-09-15 17:47 ` Michael Nolan <htfoot@gmail.com>
  2021-09-15 23:31   ` Re: Alter and move corresponding: was The tragedy of SQL Gavin Flower <GavinFlower@archidevsys.co.nz>
  2 siblings, 1 reply; 9+ messages in thread

From: Michael Nolan @ 2021-09-15 17:47 UTC (permalink / raw)
  To: Steve Litt <slitt@troubleshooters.com>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

When I was working at the help desk at the computer center as an undergrad,
the professor in charge of that group used to give us interesting little
language tests for things we needed to watch out for, especially with
beginning programmers.

One of his favorite ploys was to use the EQUIVALENCE function in FORTRAN to
equivalence a constant with a variable, then assign something to that
variable.  In one of the FORTRAN compilers, that would result in
overwriting the constant, so all future uses of it would have the new
value.  This would break many things, of course.
--
Mike Nolan

>
>

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Alter and move corresponding: was The tragedy of SQL
  2021-09-15 16:52 Alter and move corresponding: was The tragedy of SQL Steve Litt <slitt@troubleshooters.com>
  2021-09-15 17:47 ` Re: Alter and move corresponding: was The tragedy of SQL Michael Nolan <htfoot@gmail.com>
@ 2021-09-15 23:31   ` Gavin Flower <GavinFlower@archidevsys.co.nz>
  2021-09-16 03:43     ` Re: Alter and move corresponding: was The tragedy of SQL Gavan Schneider <list.pg.gavan@pendari.org>
  0 siblings, 1 reply; 9+ messages in thread

From: Gavin Flower @ 2021-09-15 23:31 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 16/09/21 05:47, Michael Nolan wrote:
> When I was working at the help desk at the computer center as an 
> undergrad, the professor in charge of that group used to give us 
> interesting little language tests for things we needed to watch out 
> for, especially with beginning programmers.
>
> One of his favorite ploys was to use the EQUIVALENCE function in 
> FORTRAN to equivalence a constant with a variable, then assign 
> something to that variable.  In one of the FORTRAN compilers, that 
> would result in overwriting the constant, so all future uses of it 
> would have the new value.  This would break many things, of course.
> --
> Mike Nolan
>
>
On the IBM 1130 we were warned not to assign a value to a number, like

     3 = 7

if we did then apparently

     x = 6 * 3

would assign the value of 42 to x.

Never tried it, I now wish I had!


Cheers,
Gavin






^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Alter and move corresponding: was The tragedy of SQL
  2021-09-15 16:52 Alter and move corresponding: was The tragedy of SQL Steve Litt <slitt@troubleshooters.com>
  2021-09-15 17:47 ` Re: Alter and move corresponding: was The tragedy of SQL Michael Nolan <htfoot@gmail.com>
  2021-09-15 23:31   ` Re: Alter and move corresponding: was The tragedy of SQL Gavin Flower <GavinFlower@archidevsys.co.nz>
@ 2021-09-16 03:43     ` Gavan Schneider <list.pg.gavan@pendari.org>
  2021-09-16 16:30       ` Re: Alter and move corresponding: was The tragedy of SQL Michael Nolan <htfoot@gmail.com>
  0 siblings, 1 reply; 9+ messages in thread

From: Gavan Schneider @ 2021-09-16 03:43 UTC (permalink / raw)
  To: Gavin Flower <GavinFlower@archidevsys.co.nz>; +Cc: pgsql-general@lists.postgresql.org

On 16 Sep 2021, at 9:31, Gavin Flower wrote:

> would assign the value of 42 to x.
>
Which brings up another topic, e.g., https://news.mit.edu/2019/answer-life-universe-and-everything-sum-three-cubes-mathematics-0910

>  Never tried it, I now wish I had!
>
You could see if it’s accurately emulated, e.g., http://ibm1130.org/emu/

What is truly amazing about old style FORTRAN is that it has a theological aspect.

What other computer language can give truth to a maxim such as:
	IN FORTRAN GOD IS REAL

Gavan Schneider
——
Gavan Schneider, Sodwalls, NSW, Australia
Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong.
— H. L. Mencken, 1920





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Alter and move corresponding: was The tragedy of SQL
  2021-09-15 16:52 Alter and move corresponding: was The tragedy of SQL Steve Litt <slitt@troubleshooters.com>
  2021-09-15 17:47 ` Re: Alter and move corresponding: was The tragedy of SQL Michael Nolan <htfoot@gmail.com>
  2021-09-15 23:31   ` Re: Alter and move corresponding: was The tragedy of SQL Gavin Flower <GavinFlower@archidevsys.co.nz>
  2021-09-16 03:43     ` Re: Alter and move corresponding: was The tragedy of SQL Gavan Schneider <list.pg.gavan@pendari.org>
@ 2021-09-16 16:30       ` Michael Nolan <htfoot@gmail.com>
  0 siblings, 0 replies; 9+ messages in thread

From: Michael Nolan @ 2021-09-16 16:30 UTC (permalink / raw)
  To: Gavan Schneider <list.pg.gavan@pendari.org>; +Cc: Gavin Flower <GavinFlower@archidevsys.co.nz>; pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>

One of the grad students in the computer center had a sign on his wall:
God is real, but Man is only an integer.
--
Mike Nolan

^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Alter and move corresponding: was The tragedy of SQL
  2021-09-15 16:52 Alter and move corresponding: was The tragedy of SQL Steve Litt <slitt@troubleshooters.com>
@ 2021-09-15 18:07 ` Ron <ronljohnsonjr@gmail.com>
  2 siblings, 0 replies; 9+ messages in thread

From: Ron @ 2021-09-15 18:07 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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.





^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Alter and move corresponding: was The tragedy of SQL
  2021-09-15 16:52 Alter and move corresponding: was The tragedy of SQL Steve Litt <slitt@troubleshooters.com>
@ 2021-09-16 23:01 ` Gavin Flower <GavinFlower@archidevsys.co.nz>
  2021-09-16 23:22   ` Re: Alter and move corresponding: was The tragedy of SQL Rob Sargent <robjsargent@gmail.com>
  2 siblings, 1 reply; 9+ messages in thread

From: Gavin Flower @ 2021-09-16 23:01 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 16/09/21 04:52, 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!
>> 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.

[...]

I was very proud of using an ALTER GOTO in my first program in my 8 week 
COBOL training course.  Now I cringe every time I think about it!

Before the course, I was fluent in FORTRAN IV and had programmed in 
ALGOL-68.  So I was an experienced programmer.


Cheers,
Gavin



Cheers,
Gavin






^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Alter and move corresponding: was The tragedy of SQL
  2021-09-15 16:52 Alter and move corresponding: was The tragedy of SQL Steve Litt <slitt@troubleshooters.com>
  2021-09-16 23:01 ` Re: Alter and move corresponding: was The tragedy of SQL Gavin Flower <GavinFlower@archidevsys.co.nz>
@ 2021-09-16 23:22   ` Rob Sargent <robjsargent@gmail.com>
  2021-09-17 02:21     ` Re: Alter and move corresponding: was The tragedy of SQL Gavin Flower <GavinFlower@archidevsys.co.nz>
  0 siblings, 1 reply; 9+ messages in thread

From: Rob Sargent @ 2021-09-16 23:22 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

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.
>
> [...]
>
> I was very proud of using an ALTER GOTO in my first program in my 8 
> week COBOL training course.  Now I cringe every time I think about it!
>
> Before the course, I was fluent in FORTRAN IV and had programmed in 
> ALGOL-68.  So I was an experienced programmer.
>
>
In what I see now as truly prescient of the early 80's U of BC CS 
department, algol-68, snobol, cobol, B, APL and half a dozen others I've 
complete forgoten each got a week with the same Towers of Hanoi task. I 
can only assume the powers saw the impending dump-heap relegation of the 
lot of them. The counter argument was that the major project was done PL/1.






^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Alter and move corresponding: was The tragedy of SQL
  2021-09-15 16:52 Alter and move corresponding: was The tragedy of SQL Steve Litt <slitt@troubleshooters.com>
  2021-09-16 23:01 ` Re: Alter and move corresponding: was The tragedy of SQL Gavin Flower <GavinFlower@archidevsys.co.nz>
  2021-09-16 23:22   ` Re: Alter and move corresponding: was The tragedy of SQL Rob Sargent <robjsargent@gmail.com>
@ 2021-09-17 02:21     ` Gavin Flower <GavinFlower@archidevsys.co.nz>
  0 siblings, 0 replies; 9+ messages in thread

From: Gavin Flower @ 2021-09-17 02:21 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; pgsql-general@lists.postgresql.org

On 17/09/21 11:22, Rob Sargent wrote:
> 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.
>>
>> [...]
>>
>> I was very proud of using an ALTER GOTO in my first program in my 8 
>> week COBOL training course.  Now I cringe every time I think about it!
>>
>> Before the course, I was fluent in FORTRAN IV and had programmed in 
>> ALGOL-68.  So I was an experienced programmer.
>>
>>
> In what I see now as truly prescient of the early 80's U of BC CS 
> department, algol-68, snobol, cobol, B, APL and half a dozen others 
> I've complete forgoten each got a week with the same Towers of Hanoi 
> task. I can only assume the powers saw the impending dump-heap 
> relegation of the lot of them. The counter argument was that the major 
> project was done PL/1.
>
>
>
I've seen some documentation for all those languages except B, but I 
never programmed in any of: SNOBOL, B, nor APL.  I was sent on a 3 day 
PL/1 course, but never used it 'in anger'.

I once tried to discuss general programming ideas with a colleague, and 
started talking about a section of code.  They then proceeded to tell me 
the definition of SECTION in COBOL in detail, I didn't bother to tell 
them that I knew 3 things about SECTIONs in COBOL that they hadn't 
mentioned.  I gave up the discussion, saw no point in continuing, and I 
didn't want to appear patronising.

Until one has programmed in several languages, preferably of different 
types, it is difficult to separate out programming concepts from the 
philosophy and implementation of individual languages.

I think any Master Programmer should have fluency in at least 3 
languages and familiarity with at least 3 more.  So I think at least 3 
languages should be taught to CS students.  And of course the importance 
of how to RTFM effectively!

Once I helped a colleague debug a Smalltalk example based on a magazine 
article I'd read 2 years earlier.  I'm certain they implicitly assumed 
that I was for more experienced in Smalltalk than I was!  Perhaps I 
should ask her, but she's probably forgotten -- that was about 30 years 
ago.  Now I've been married to her for 25 years,

Another time I helped someone develop a screen saver in Visual Basic.  
Though it was many years later before I realized the name of the 
language.  I'd never seen VB before.  I even explained the OnEvent 
concept even though it was totally new to me, but I still successfully 
helped them to implement at least one such construct in the screen 
saver.  Having experience with a wide variety of different programming 
languages was a huge advantage.


Cheers,
Gavin






^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2021-09-17 02:21 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 16:52 Alter and move corresponding: was The tragedy of SQL Steve Litt <slitt@troubleshooters.com>
2021-09-15 17:47 ` Michael Nolan <htfoot@gmail.com>
2021-09-15 23:31   ` Gavin Flower <GavinFlower@archidevsys.co.nz>
2021-09-16 03:43     ` Gavan Schneider <list.pg.gavan@pendari.org>
2021-09-16 16:30       ` Michael Nolan <htfoot@gmail.com>
2021-09-15 18:07 ` Ron <ronljohnsonjr@gmail.com>
2021-09-16 23:01 ` Gavin Flower <GavinFlower@archidevsys.co.nz>
2021-09-16 23:22   ` Rob Sargent <robjsargent@gmail.com>
2021-09-17 02:21     ` Gavin Flower <GavinFlower@archidevsys.co.nz>

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