Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Human beings were created by water to transport it uphill.


computers / comp.os.linux.misc / Re: COBOL and tricks

SubjectAuthor
* Linux on a small memory PCThe Natural Philosopher
+* Re: Linux on a small memory PCMarco Moock
|+- Re: Linux on a small memory PCThe Natural Philosopher
|`* Re: Linux on a small memory PCAndreas Kohlbach
| `* Re: Linux on a small memory PCThe Natural Philosopher
|  +* Re: Linux on a small memory PCRobert Heller
|  |`* Re: Linux on a small memory PCAndreas Kohlbach
|  | +* Re: Linux on a small memory PCRichard Kettlewell
|  | |`* Re: Linux on a small memory PCThe Natural Philosopher
|  | | `- Re: Linux on a small memory PCRichard Kettlewell
|  | `* Re: Linux on a small memory PCThe Natural Philosopher
|  |  `* Re: Linux on a small memory PCAndreas Kohlbach
|  |   `* Re: Linux on a small memory PCThe Natural Philosopher
|  |    `* Re: Linux on a small memory PCAndreas Kohlbach
|  |     `* Fwd: Linux on a small memory PC25B.Z959
|  |      `* Re: Fwd: Linux on a small memory PCAndreas Kohlbach
|  |       `* Re: Fwd: Linux on a small memory PC25B.Z959
|  |        `* Re: Fwd: Linux on a small memory PCAndreas Kohlbach
|  |         `* Re: Fwd: Linux on a small memory PC25B.Z959
|  |          +* Re: Fwd: Linux on a small memory PCCharlie Gibbs
|  |          |`- Re: Fwd: Linux on a small memory PC25B.Z959
|  |          `* Re: Fwd: Linux on a small memory PCDan Espen
|  |           +* Re: Fwd: Linux on a small memory PCCharlie Gibbs
|  |           |`* Re: Fwd: Linux on a small memory PCComputer Nerd Kev
|  |           | +* Re: Fwd: Linux on a small memory PCComputer Nerd Kev
|  |           | |+- Re: Fwd: Linux on a small memory PCTom Furie
|  |           | |`- Re: Fwd: Linux on a small memory PCAndreas Kohlbach
|  |           | +* Re: Fwd: Linux on a small memory PCDan Espen
|  |           | |+* Re: Fwd: Linux on a small memory PCDavid W. Hodgins
|  |           | ||`- Re: Fwd: Linux on a small memory PCDan Espen
|  |           | |+* Re: Fwd: Linux on a small memory PCComputer Nerd Kev
|  |           | ||+* Re: Fwd: Linux on a small memory PCDan Espen
|  |           | |||+* The Y2K problem - again (was: Fwd: Linux on a small memory PC)Andreas Kohlbach
|  |           | ||||`- Re: The Y2K problem - again (was: Fwd: Linux on a small memory PC)Peter Flass
|  |           | |||`* Re: Fwd: Linux on a small memory PCComputer Nerd Kev
|  |           | ||| `- Re: Fwd: Linux on a small memory PCTom Furie
|  |           | ||`* Re: Fwd: Linux on a small memory PCDavid W. Hodgins
|  |           | || `- Re: Fwd: Linux on a small memory PCCharlie Gibbs
|  |           | |`* Re: Fwd: Linux on a small memory PCEric Pozharski
|  |           | | +* Re: Fwd: Linux on a small memory PCDan Espen
|  |           | | |`- Re: Fwd: Linux on a small memory PCEric Pozharski
|  |           | | `- Re: Fwd: Linux on a small memory PCCharlie Gibbs
|  |           | +- Re: Fwd: Linux on a small memory PCCharlie Gibbs
|  |           | `* Re: Fwd: Linux on a small memory PCAndreas Kohlbach
|  |           |  `- Re: Fwd: Linux on a small memory PCCharlie Gibbs
|  |           `* Re: Fwd: Linux on a small memory PC25B.Z959
|  |            +- Re: Fwd: Linux on a small memory PC25B.Z959
|  |            `* Re: Fwd: Linux on a small memory PCCharlie Gibbs
|  |             `* Re: Fwd: Linux on a small memory PCDan Espen
|  |              +* Re: Fwd: Linux on a small memory PCDavid W. Hodgins
|  |              |`* Re: Fwd: Linux on a small memory PCDan Espen
|  |              | `- Re: Fwd: Linux on a small memory PCDavid W. Hodgins
|  |              `* Re: Fwd: Linux on a small memory PCCharlie Gibbs
|  |               `* Re: Fwd: Linux on a small memory PC25B.Z959
|  |                +* Re: Fwd: Linux on a small memory PCCharlie Gibbs
|  |                |`- Re: Fwd: Linux on a small memory PC25B.Z959
|  |                +* Re: Fwd: Linux on a small memory PCPeter Flass
|  |                |+* Re: Fwd: Linux on a small memory PCThe Natural Philosopher
|  |                ||`* Re: Fwd: Linux on a small memory PCPeter Flass
|  |                || +* Re: COBOL and tricksLew Pitcher
|  |                || |+* Re: COBOL and tricksPeter Flass
|  |                || ||+* Re: COBOL and tricksDavid W. Hodgins
|  |                || |||+* Re: COBOL and tricksDan Espen
|  |                || ||||+* Re: COBOL and tricksPeter Flass
|  |                || |||||+* Re: COBOL and tricksCharlie Gibbs
|  |                || ||||||`* Re: COBOL and tricks25B.Z959
|  |                || |||||| `* Re: COBOL and tricksPeter Flass
|  |                || ||||||  `- Re: COBOL and tricksCharlie Gibbs
|  |                || |||||`- Re: COBOL and tricksDan Espen
|  |                || ||||`- Re: COBOL and tricksRichard Kettlewell
|  |                || |||`* Re: COBOL and tricksCharlie Gibbs
|  |                || ||| +- Re: COBOL and tricksPeter Flass
|  |                || ||| `- Re: COBOL and tricksDan Espen
|  |                || ||+* Re: COBOL and tricksDan Espen
|  |                || |||+* Re: COBOL and tricksPeter Flass
|  |                || ||||+* Re: COBOL and tricksCharlie Gibbs
|  |                || |||||+- Re: COBOL and tricksAhem A Rivet's Shot
|  |                || |||||`* Re: COBOL and tricksThe Natural Philosopher
|  |                || ||||| `- Re: COBOL and tricksPeter Flass
|  |                || ||||`* Re: COBOL and tricksDan Espen
|  |                || |||| `- Re: COBOL and tricksCharlie Gibbs
|  |                || |||`* Re: COBOL and tricksCharlie Gibbs
|  |                || ||| `- Re: COBOL and tricksPeter Flass
|  |                || ||+- Re: COBOL and tricksScott Lurndal
|  |                || ||+* Re: COBOL and tricksD.J.
|  |                || |||`* Re: COBOL and tricks25B.Z959
|  |                || ||| +* Re: COBOL and tricksTauno Voipio
|  |                || ||| |`- Re: COBOL and tricks25B.Z959
|  |                || ||| +- Re: COBOL and tricksScott Lurndal
|  |                || ||| +- Re: COBOL and tricksG.K.
|  |                || ||| +- Re: COBOL and tricksD.J.
|  |                || ||| `- Re: COBOL and tricksAnne & Lynn Wheeler
|  |                || ||`* Re: COBOL and tricksCharlie Gibbs
|  |                || || `- Re: COBOL and tricksDan Espen
|  |                || |+* Re: COBOL and tricksAnne & Lynn Wheeler
|  |                || ||`* Re: COBOL and tricksPeter Flass
|  |                || || +* Re: COBOL and tricksThe Natural Philosopher
|  |                || || |`- Re: COBOL and tricksPeter Flass
|  |                || || `* Re: COBOL and tricksScott Lurndal
|  |                || ||  +- Re: COBOL and tricksPeter Flass
|  |                || ||  `- Re: COBOL and tricksDan Espen
|  |                || |`* Re: COBOL and tricks25B.Z959
|  |                || `* Re: Fwd: Linux on a small memory PCThe Natural Philosopher
|  |                |`* Re: Fwd: Linux on a small memory PCJ. Clarke
|  |                `* Re: Fwd: Linux on a small memory PCJ. Clarke
|  `* Re: Linux on a small memory PCPancho
+* Re: Linux on a small memory PCJoerg Lorenz
`- Re: Linux on a small memory PC25B.Z959

Pages:12345678910111213141516171819202122232425262728293031
Re: COBOL and tricks

<1681944481.679971938.288970.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7781&group=comp.os.linux.misc#7781

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_fl...@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Tue, 19 Jul 2022 18:10:42 -0700
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <1681944481.679971938.288970.peter_flass-yahoo.com@news.eternal-september.org>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<op.1pklomz0a3w0dxdave@hodgins.homeip.net>
<VZHBK.98713$%i2.24163@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="77a6f9485ea78d4f27dc72d3c53d6252";
logging-data="1311471"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+307KPygqV9pB3YvTKIAx3"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:Qy5ZBcAHm6AZku+7yoTyzCHgD9c=
sha1:DTbORaXmK3cBNWxPuVAc5EjvKCM=
 by: Peter Flass - Wed, 20 Jul 2022 01:10 UTC

Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:
> On 2022-07-19, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>
>> On Tue, 19 Jul 2022 15:53:19 -0400, Peter Flass <peter_flass@yahoo.com> wrote:
>>
>>> I think I remember reading that someone once coded a compiler in COBOL.
>>
>> The strangest trick I encountered was a COBOL program, where the header
>> for a report was redefined, so the letter C in a character field was
>> redefined for use as constant with the value +1. That and a few other
>> characters with similar usage.
>
> I wrote an assembly language subroutine that I called from the COBOL
> program that produced pay cheques for dozens of customers (each on
> a unique form, of course). The subroutine found the printer's DDname
> in the COBOL program and changed it, so I could have it run cheques
> for all customers in a single run without defining a ridiculous number
> of printer files. (I still needed a line in the JCL for each one, though.)
>

Lots of games. I did something similar for PL/I to read all members of a
PDS. i read the directory and then modified the member name in the JFCB for
each. The SHARE TAPECOPY program scanned the TIOT to determine how many
copies to make.

--
Pete

Re: COBOL and tricks

<1113646706.679972112.988213.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7782&group=comp.os.linux.misc#7782

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_fl...@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Tue, 19 Jul 2022 18:10:43 -0700
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <1113646706.679972112.988213.peter_flass-yahoo.com@news.eternal-september.org>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<tb75ku$16lh5$1@dont-email.me>
<WZHBK.98714$%i2.97119@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="77a6f9485ea78d4f27dc72d3c53d6252";
logging-data="1311471"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BBUlAUYL2UndIPyfStP3S"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:GBsNMhDsGKCR35rNrEBoKgEh4tc=
sha1:4Ce2mxQ+IwcslAMTa6qMCC9Ugu4=
 by: Peter Flass - Wed, 20 Jul 2022 01:10 UTC

Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:
> On 2022-07-19, Dan Espen <dan1espen@gmail.com> wrote:
>
>> The worst COBOL programs were the 10K+ line monsters.
>
> I took a look at one of those once. The listings took up almost
> a box of paper, spread across dozens of modules. I would have
> loved to have gotten my hands on the thing for a few days, but
> I had to content myself with changing all the subscripts from
> COMP-3 (packed decimal) to COMP-4 (binary), which knocked 30%
> off its execution time.
>

A few simple things might give 75% of the possible improvement.

--
Pete

Re: COBOL and tricks

<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7783&group=comp.os.linux.misc#7783

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 19 Jul 2022 21:34:41 -0500
Subject: Re: COBOL and tricks
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
From: 25B.Z...@nada.net (25B.Z959)
Date: Tue, 19 Jul 2022 22:34:40 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <tb71r6$14eug$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
Lines: 50
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 98.77.165.113
X-Trace: sv3-i5RmC/c204SmwD90DWJFJ19GpBlR8P0xO/ejMYids2v9gXSxhssr5R/GRmKKIii798bEBM2s01+ky50!UllcDTO7Tu0e4EtoGC52PGDjw2P+ilx/cSRa278jStIoQoeyLD1qEA5lQW44kAjam8TqYAScFIF+!uzXOMMZKF2+FIlAAAVIp
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4073
 by: 25B.Z959 - Wed, 20 Jul 2022 02:34 UTC

On 7/19/22 3:48 PM, Lew Pitcher wrote:
> On Tue, 19 Jul 2022 11:58:29 -0700, Peter Flass wrote:
>
>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>> On 19/07/2022 18:48, Peter Flass wrote:
>>>> 25B.Z959 <25B.Z959@nada.net> wrote:
> [snip]
>>>>> Amazing how many institutions STILL run COBOL apps writ
>>>>> during the 60s by the guys with skinny ties. They work
>>>>> very well, they're too expensive to re-do, so ....
>>>>>
>>>>> There's probably a COBOL->C++ or JAVA translator out
>>>>> there somewhere ... but money's so tight these days
>>>>> and so many of those legacy apps are so super-critical
>>>>> that they just can't/won't.
>>>>>
>>>>
>>>> Maybe these are better than translators I have seen, but old ones produced
>>>> unreadable code, and they might well miss some litte tricks that the old
>>>> guys put in, and so leave time-bombs in the translated program. Much more
>>>> expensive, but a lot better, is to extract the specs from the existing
>>>> code, and there are re-engineering programs that can probably do a lot of
>>>> that work, and then rewrite in the new language using programmers skilled
>>>> in that language.
>>>>
>>>>
>>> TBH you cant do many tricks in COBOL and the whole thrust of the bloody
>>> language is 'do it by the book, and write the book as documentation, as
>>> well'
>>>
>>
>> How much would you like to bet? Yes, the language encourages
>> straightforward programming, but I’ve seen things…
>
> A long time ago, I worked on many COBOL applications, including a
> client (PC) / server (MVS) communications application. I've seen
> things that I cannot unsee, coded things that I cannot uncode.

Got any of it on a floppy or print-out anywhere ? I'd
love to see how to do client/server only using COBOL.

Yea, you could do it in BASIC too ... with lots of
DATA statements. I remember converting a Fortran
pgm to IBMPC BASIC, but had to work that newfangled
8087 the hard way using DATA. 8087s are weird. Yuk !

COBOL was deliberately made to do "business stuff" in a
super-wordy fashion that was SUPPOSED to be "self documenting".
Maybe the only language requiring more text than Java :-)

Re: COBOL and tricks

<tb7qih$14eug$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7784&group=comp.os.linux.misc#7784

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 02:50:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <tb7qih$14eug$2@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Jul 2022 02:50:57 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="952078029a226ab95cbf9739b6963287";
logging-data="1194960"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iYG64RxKqXM2TSZplRWIG9d14BpLFu8g="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:2TmehHkPK8Qv3wCJ+cWjygSKoMY=
 by: Lew Pitcher - Wed, 20 Jul 2022 02:50 UTC

On Tue, 19 Jul 2022 22:34:40 -0400, 25B.Z959 wrote:

> On 7/19/22 3:48 PM, Lew Pitcher wrote:
>> On Tue, 19 Jul 2022 11:58:29 -0700, Peter Flass wrote:
>>
>>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>>> On 19/07/2022 18:48, Peter Flass wrote:
>>>>> 25B.Z959 <25B.Z959@nada.net> wrote:
>> [snip]
>>>>>> Amazing how many institutions STILL run COBOL apps writ
>>>>>> during the 60s by the guys with skinny ties. They work
>>>>>> very well, they're too expensive to re-do, so ....
>>>>>>
>>>>>> There's probably a COBOL->C++ or JAVA translator out
>>>>>> there somewhere ... but money's so tight these days
>>>>>> and so many of those legacy apps are so super-critical
>>>>>> that they just can't/won't.
>>>>>>
>>>>>
>>>>> Maybe these are better than translators I have seen, but old ones produced
>>>>> unreadable code, and they might well miss some litte tricks that the old
>>>>> guys put in, and so leave time-bombs in the translated program. Much more
>>>>> expensive, but a lot better, is to extract the specs from the existing
>>>>> code, and there are re-engineering programs that can probably do a lot of
>>>>> that work, and then rewrite in the new language using programmers skilled
>>>>> in that language.
>>>>>
>>>>>
>>>> TBH you cant do many tricks in COBOL and the whole thrust of the bloody
>>>> language is 'do it by the book, and write the book as documentation, as
>>>> well'
>>>>
>>>
>>> How much would you like to bet? Yes, the language encourages
>>> straightforward programming, but I’ve seen things…
>>
>> A long time ago, I worked on many COBOL applications, including a
>> client (PC) / server (MVS) communications application. I've seen
>> things that I cannot unsee, coded things that I cannot uncode.
>
>
> Got any of it on a floppy or print-out anywhere ? I'd
> love to see how to do client/server only using COBOL.

Both client and server used the same COBOL codebase, but with
different compilers and operating environments.

The client was coded in Microfocus "Visual Object (VISOC)" COBOL
and ran on Windows NT 3 and Windows NT 4.1, using a TCP/IP to SNA
(terminal communications) connection.

The server was coded in IBM COBOL and ran under IMS DC on an MVS
system, using an SNA terminal LU as it's communications endpoint.

As this was an in-house "inner platform" project (3 tier client/server
architecture, circa 1990), I did not keep personal copies of any
of the code. Suffice it to say that my first question to the architect,
my first day on that project, was "Why COBOL?" The answer was "Because
that's what the coders know."

> Yea, you could do it in BASIC too ... with lots of
> DATA statements. I remember converting a Fortran
> pgm to IBMPC BASIC, but had to work that newfangled
> 8087 the hard way using DATA. 8087s are weird. Yuk !
>
> COBOL was deliberately made to do "business stuff" in a
> super-wordy fashion that was SUPPOSED to be "self documenting".

Agreed. That was the defining component of COBOL, and perhaps it's
saving grace.

> Maybe the only language requiring more text than Java :-)

Those of us who coded COBOL for a living kept a boilerplate^W
template program handy, just so we didn't have to fill in all that
language /just/ to get a program started.

--
Lew Pitcher
"In Skills, We Trust"

Re: COBOL and tricks

<tb7sbg$1c221$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7785&group=comp.os.linux.misc#7785

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1es...@gmail.com (Dan Espen)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Tue, 19 Jul 2022 23:21:18 -0400
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <tb7sbg$1c221$1@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<tb75ku$16lh5$1@dont-email.me>
<546414099.679965764.141022.peter_flass-yahoo.com@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="6f6eec60d8a101cb2afc67ca98ba7928";
logging-data="1443905"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18nC8da41O5kudxXHKryCe7eWboino2Tt4="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:/J2gpj9tZR2svXZ9rNx9EufZ+yA=
 by: Dan Espen - Wed, 20 Jul 2022 03:21 UTC

Peter Flass <peter_flass@yahoo.com> writes:

> Dan Espen <dan1espen@gmail.com> wrote:
>> Peter Flass <peter_flass@yahoo.com> writes:
>>
>>> Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
>>>> On Tue, 19 Jul 2022 11:58:29 -0700, Peter Flass wrote:
>>>>
>>>>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>>>>> On 19/07/2022 18:48, Peter Flass wrote:
>>>>>>> 25B.Z959 <25B.Z959@nada.net> wrote:
>>>> [snip]
>>>>>>>> Amazing how many institutions STILL run COBOL apps writ
>>>>>>>> during the 60s by the guys with skinny ties. They work
>>>>>>>> very well, they're too expensive to re-do, so ....
>>>>>>>>
>>>>>>>> There's probably a COBOL->C++ or JAVA translator out
>>>>>>>> there somewhere ... but money's so tight these days
>>>>>>>> and so many of those legacy apps are so super-critical
>>>>>>>> that they just can't/won't.
>>>>>>>>
>>>>>>>
>>>>>>> Maybe these are better than translators I have seen, but old ones produced
>>>>>>> unreadable code, and they might well miss some litte tricks that the old
>>>>>>> guys put in, and so leave time-bombs in the translated program. Much more
>>>>>>> expensive, but a lot better, is to extract the specs from the existing
>>>>>>> code, and there are re-engineering programs that can probably do a lot of
>>>>>>> that work, and then rewrite in the new language using programmers skilled
>>>>>>> in that language.
>>>>>>>
>>>>>>>
>>>>>> TBH you cant do many tricks in COBOL and the whole thrust of the bloody
>>>>>> language is 'do it by the book, and write the book as documentation, as
>>>>>> well'
>>>>>>
>>>>>
>>>>> How much would you like to bet? Yes, the language encourages
>>>>> straightforward programming, but I’ve seen things…
>>>>
>>>> A long time ago, I worked on many COBOL applications, including a
>>>> client (PC) / server (MVS) communications application. I've seen
>>>> things that I cannot unsee, coded things that I cannot uncode.
>>>
>>> I think I remember reading that someone once coded a compiler in COBOL.
>>
>> I did a full screen editor in COBOL. It was pretty neat and the code
>> was good.
>>
>> The worst COBOL programs were the 10K+ line monsters.
>>
>> A lot of early COBOL was written from flowcharts full of GOTOs with
>> little or no structure. Even though the language statements were simple
>> you still had a mess.
>
> One of the best things to happen in programming is that (at least some)
> programmers learned how to write clean, straightforward, well-documented
> code. I’ve looked at some early FORTRAN programs, too, and they’re the
> same. Control jumps all over the place, and no one ever, ever, wrote a
> comment.

Yep, why would they? The flowchart was the documentation.

--
Dan Espen

Re: COBOL and tricks

<tb7sv2$1c221$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7786&group=comp.os.linux.misc#7786

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1es...@gmail.com (Dan Espen)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Tue, 19 Jul 2022 23:31:44 -0400
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <tb7sv2$1c221$2@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<op.1pklomz0a3w0dxdave@hodgins.homeip.net>
<tb75sm$16lh5$2@dont-email.me>
<2131809304.679966017.636441.peter_flass-yahoo.com@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="6f6eec60d8a101cb2afc67ca98ba7928";
logging-data="1443905"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SvCCpBQmZzB1OwEOQnRH90nDqDAGdJXA="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:8OOBGQ6xMzU3vzeig8A1iMe23wQ=
 by: Dan Espen - Wed, 20 Jul 2022 03:31 UTC

Peter Flass <peter_flass@yahoo.com> writes:

> Dan Espen <dan1espen@gmail.com> wrote:
>> "David W. Hodgins" <dwhodgins@nomail.afraid.org> writes:
>>
>>> On Tue, 19 Jul 2022 15:53:19 -0400, Peter Flass <peter_flass@yahoo.com> wrote:
>>>> I think I remember reading that someone once coded a compiler in COBOL.
>>>
>>> The strangest trick I encountered was a COBOL program, where the header
>>> for a report was redefined, so the letter C in a character field was
>>> redefined for use as constant with the value +1. That and a few other
>>> characters with similar usage.
>>>
>>> All done to keep the executable size under some limit for a mid 1960's system.
>>>
>>> I encountered that in the 1980's when I was tasked with debugging why another
>>> persons minor changes caused the program to fail to produce correct results in
>>> testing.
>>
>> I have yet to see an optimizer optimize the literal pool with that
>> trick. I don't see why.
>>
>> Why do literals of 'DATE' and 'UPDATE' take 10 bytes when only 6 are needed.
>
> Interesting, I don’t do that either, although I think I’ll optimize when
> the first characters are the same. Maybe it’s more trouble than it’s worth
> to scan the entire literal pool for matches, and, if course if DATE is
> encountered first, you’d have to do a lot of rearranging.

Here's a first try:

Sort largest stuff first.
Then from the back, look from the front to find targets.
When you find a target at a higher address stop.
Remove the gaps at the end.

> These days, of course, we’re awash in memory and it’s not worth doing a lot
> of work to save a few bytes; not like the old days.

Yeah but an optimizer is supposed to save space and a smaller literal
pool is good for the cache.

--
Dan Espen

Re: COBOL and tricks

<tb7t9i$1c221$3@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7787&group=comp.os.linux.misc#7787

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1es...@gmail.com (Dan Espen)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Tue, 19 Jul 2022 23:37:20 -0400
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <tb7t9i$1c221$3@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<op.1pklomz0a3w0dxdave@hodgins.homeip.net>
<VZHBK.98713$%i2.24163@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="6f6eec60d8a101cb2afc67ca98ba7928";
logging-data="1443905"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/PtxRotXeyq5jW0zKRBdeg9/aEvO1vR3k="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:/to86XTIPOu3EiKPQie8cnu1NPM=
 by: Dan Espen - Wed, 20 Jul 2022 03:37 UTC

Charlie Gibbs <cgibbs@kltpzyxm.invalid> writes:

> On 2022-07-19, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>
>> On Tue, 19 Jul 2022 15:53:19 -0400, Peter Flass <peter_flass@yahoo.com> wrote:
>>
>>> I think I remember reading that someone once coded a compiler in COBOL.
>>
>> The strangest trick I encountered was a COBOL program, where the header
>> for a report was redefined, so the letter C in a character field was
>> redefined for use as constant with the value +1. That and a few other
>> characters with similar usage.
>
> I wrote an assembly language subroutine that I called from the COBOL
> program that produced pay cheques for dozens of customers (each on
> a unique form, of course). The subroutine found the printer's DDname
> in the COBOL program and changed it, so I could have it run cheques
> for all customers in a single run without defining a ridiculous number
> of printer files. (I still needed a line in the JCL for each one, though.)

Current mainframe COBOL will let you call dynalloc.

--
Dan Espen

Re: COBOL and tricks

<tb7tfu$1c221$4@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7788&group=comp.os.linux.misc#7788

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: dan1es...@gmail.com (Dan Espen)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Tue, 19 Jul 2022 23:40:44 -0400
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <tb7tfu$1c221$4@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<YZHBK.98717$%i2.54494@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="6f6eec60d8a101cb2afc67ca98ba7928";
logging-data="1443905"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19o07nGwyT/V5WSUWUim+LQrCVyxSyVyCg="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:6w9tKY0a3613XKcVffETH2MoGmk=
 by: Dan Espen - Wed, 20 Jul 2022 03:40 UTC

Charlie Gibbs <cgibbs@kltpzyxm.invalid> writes:

> On 2022-07-19, Peter Flass <peter_flass@yahoo.com> wrote:
>
>> Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
>>
>>> On Tue, 19 Jul 2022 11:58:29 -0700, Peter Flass wrote:
>>>
>>>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>>>
>>>>> TBH you cant do many tricks in COBOL and the whole thrust of the bloody
>>>>> language is 'do it by the book, and write the book as documentation, as
>>>>> well'
>>>>
>>>> How much would you like to bet? Yes, the language encourages
>>>> straightforward programming, but I’ve seen things…
>>>
>>> A long time ago, I worked on many COBOL applications, including a
>>> client (PC) / server (MVS) communications application. I've seen
>>> things that I cannot unsee, coded things that I cannot uncode.
>
> BTDTGTS (been there, done that, got the scars)
>
> I once wrote a COBOL program that built and parsed terminal control
> sequences. And this was before STRING and UNSTRING.

You can do wonders with OCCURS DEPENDING ON, pretty much any kind of
string processing you want.

--
Dan Espen

Re: COBOL and tricks

<20220720064816.156355a2b4ace58fc2cef3df@eircom.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7789&group=comp.os.linux.misc#7789

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 06:48:16 +0100
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <20220720064816.156355a2b4ace58fc2cef3df@eircom.net>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<tb75ku$16lh5$1@dont-email.me>
<546414099.679965764.141022.peter_flass-yahoo.com@news.eternal-september.org>
<XZHBK.98715$%i2.91671@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="95be5cf854d7281be00070e9f6ada25c";
logging-data="1515919"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CRABw0Nf18XtYXM5WIsnB5jU1b93KkbM="
Cancel-Lock: sha1:9EE88fGmoV6LHvvJOMaDvUqvptI=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0)
 by: Ahem A Rivet's - Wed, 20 Jul 2022 05:48 UTC

On Wed, 20 Jul 2022 00:27:35 GMT
Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:

> Mind you, at the height of the Structured Programming craze, there were
> fanatics who would write programs whose control jumped all over the
> place - into and out of a ridiculous number of subroutines whose length
> varied from 1 to 10 lines. There wasn't a single GOTO, but remember
> that a subroutine call is just a GOTO paired with a "come from".
> It's still spaghetti code, just with double strands.

This approach has reached it's zenith in some "Enterprise Java"
houses where it isn't tiny subroutines but classes that proliferate madly.

Firstly everything is an Enterprise Java Bean - which means that it
is an object with set and get functions for all member variables (that
*must* be used) and some conventional methods. Secondly everything has to
follow a "design pattern" and wear this on it's sleeve in the form of
paragraph long class names. For anything like a data type there will be
data access, transfer and model objects (at least) and there will be
interface classes, facade classes and at least one implementation class
for everything. Thirdly all methods must be short, mindlessly simple and
independently testable - complexity *must* live in the object structure not
the method code. Finally logging, tracking, performance measuring, etc
hooks are routinely levered into the code using aspect weaving.

Most programmers use IDEs that are basically code generators with
GUIs so they never have to think about all the boilerplate.

Debugging can be frustrating.

Oh yes testing - automated unit testing is required usually with
very high line and branch coverage. Sounds great right ? But the simplicity
of the routines and the requirement that tests be true unit tests with every
external dependency mocked means that the tests are usually tightly coupled
to the code and have to be changed for every code change which rather
defeats the point.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/

Re: COBOL and tricks

<87bktks0qk.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7790&group=comp.os.linux.misc#7790

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: inva...@invalid.invalid (Richard Kettlewell)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 08:26:59 +0100
Organization: terraraq NNTP server
Message-ID: <87bktks0qk.fsf@LkoBDZeT.terraraq.uk>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<op.1pklomz0a3w0dxdave@hodgins.homeip.net>
<tb75sm$16lh5$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="50264"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:fDd5GJu01CMT94K9AEEWhGgwEB4=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Wed, 20 Jul 2022 07:26 UTC

Dan Espen <dan1espen@gmail.com> writes:
> "David W. Hodgins" <dwhodgins@nomail.afraid.org> writes:
>
>> On Tue, 19 Jul 2022 15:53:19 -0400, Peter Flass <peter_flass@yahoo.com> wrote:
>>> I think I remember reading that someone once coded a compiler in COBOL.
>>
>> The strangest trick I encountered was a COBOL program, where the header
>> for a report was redefined, so the letter C in a character field was
>> redefined for use as constant with the value +1. That and a few other
>> characters with similar usage.
>>
>> All done to keep the executable size under some limit for a mid 1960's system.
>>
>> I encountered that in the 1980's when I was tasked with debugging why another
>> persons minor changes caused the program to fail to produce correct results in
>> testing.
>
> I have yet to see an optimizer optimize the literal pool with that
> trick. I don't see why.

GCC and Clang both do it.

--
https://www.greenend.org.uk/rjk/

Re: COBOL and tricks

<20220720100622.21071f6aa136e4b87fc38ff6@127.0.0.1>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7791&group=comp.os.linux.misc#7791

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 10:06:22 +0100
Organization: Dis
Lines: 14
Message-ID: <20220720100622.21071f6aa136e4b87fc38ff6@127.0.0.1>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="b9079407e262bcbf60acbaf0f17fbdc0";
logging-data="1608842"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FUJ99I68ZKwPFgz0kFmauIPSPFRadfj8="
Cancel-Lock: sha1:Nl6fr1NSRzcmSpo5PuW+6IR66Xw=
;X-no-Archive: Maybe
GNU: Terry Pratchett
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
 by: Kerr-Mudd, John - Wed, 20 Jul 2022 09:06 UTC

On Wed, 20 Jul 2022 02:50:57 -0000 (UTC)
Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
[]
>
> Those of us who coded COBOL for a living kept a boilerplate^W
> template program handy, just so we didn't have to fill in all that
> language /just/ to get a program started.
>
Ah that old chestnut: "I'll start coding, you go and find out what the user
wants".

--
Bah, and indeed Humbug.

Re: Fwd: Linux on a small memory PC

<tb8m6v$1i9o2$10@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7792&group=comp.os.linux.misc#7792

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: Fwd: Linux on a small memory PC
Date: Wed, 20 Jul 2022 11:42:39 +0100
Organization: A little, after lunch
Lines: 84
Message-ID: <tb8m6v$1i9o2$10@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Jul 2022 10:42:39 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="41d5fbc2a0edf0eef929a5b2ecaedfd3";
logging-data="1648386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VRe9FSdF4IthHHWda16bgjcOMJEzhoCM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Cancel-Lock: sha1:4FG1Wp1/sFq5fY6oN7JMCoXgKmc=
Content-Language: en-GB
In-Reply-To: <2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
 by: The Natural Philosop - Wed, 20 Jul 2022 10:42 UTC

On 19/07/2022 19:58, Peter Flass wrote:
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> On 19/07/2022 18:48, Peter Flass wrote:
>>> 25B.Z959 <25B.Z959@nada.net> wrote:
>>>> On 7/17/22 4:59 PM, Charlie Gibbs wrote:
>>>>> [Cross-posted to alt.folklore.computers]
>>>>>
>>>>> On 2022-07-17, Dan Espen <dan1espen@gmail.com> wrote:
>>>>>
>>>>>> Charlie Gibbs <cgibbs@kltpzyxm.invalid> writes:
>>>>>>
>>>>>>> On 2022-07-17, 25B.Z959 <25B.Z959@nada.net> wrote:
>>>>>>>
>>>>>>>> On 7/16/22 8:48 AM, Dan Espen wrote:
>>>>>>>>
>>>>>>>>> "25B.Z959" <25B.Z959@nada.net> writes:
>>>>>>>>>
>>>>>>>>>> Fortunately, few are so cheap to be using 2-digit dates
>>>>>>>>>> anymore. Not so in the past - they just assumed 19xx. Saved a
>>>>>>>>>> little space, easier calx.
>>>>>>>>>
>>>>>>>>> There you go, true to form. Now people use 2 digit dates because
>>>>>>>>> they are cheap.
>>>>>>>>
>>>>>>>> You are neglecting Computers Past ..... low speed, low
>>>>>>>> capacity. You simplified calx, you squeezed-down the data anywhere
>>>>>>>> you could. I know, I had to do it.
>>>>>>>
>>>>>>> Me too. My first job was in an all-card shop. To squeeze things onto
>>>>>>> an 80-column card, we stored dates in 5 columns as ddmmy. That's
>>>>>>> right, we only kept the last digit of the year. I started there in
>>>>>>> 1970, and one of my first assignments was to go through all report
>>>>>>> programs and change the '6' they inserted in front of the year to '7'.
>>>>>>
>>>>>> In an all card shop having more than 1 card for a logical record is a
>>>>>> problem. Not insurmountable but difficult. I've heard the one digit
>>>>>> year story in that context but never had to deal with it.
>>>>>
>>>>> We used two cards for customer name data, but they didn't have dates
>>>>> in them, just long names. You're right, having more than one card
>>>>> for a logical record is a pain in the ass. I use the present tense
>>>>> because I'm still faced with such files today.
>>>>
>>>>
>>>> Yep - the past IS present ... old records never die, they
>>>> just become more inconvenient. :-)
>>>>
>>>> Amazing how many institutions STILL run COBOL apps writ
>>>> during the 60s by the guys with skinny ties. They work
>>>> very well, they're too expensive to re-do, so ....
>>>>
>>>> There's probably a COBOL->C++ or JAVA translator out
>>>> there somewhere ... but money's so tight these days
>>>> and so many of those legacy apps are so super-critical
>>>> that they just can't/won't.
>>>>
>>>
>>> Maybe these are better than translators I have seen, but old ones produced
>>> unreadable code, and they might well miss some litte tricks that the old
>>> guys put in, and so leave time-bombs in the translated program. Much more
>>> expensive, but a lot better, is to extract the specs from the existing
>>> code, and there are re-engineering programs that can probably do a lot of
>>> that work, and then rewrite in the new language using programmers skilled
>>> in that language.
>>>
>>>
>> TBH you cant do many tricks in COBOL and the whole thrust of the bloody
>> language is 'do it by the book, and write the book as documentation, as
>> well'
>>
>
> How much would you like to bet? Yes, the language encourages
> straightforward programming, but I’ve seen things…
>
COBOL IME was generally written by teams of coders after the analysts
had written the specification, to strict coding standards which if not
adhered to got you the sack.

--
“But what a weak barrier is truth when it stands in the way of an
hypothesis!”

Mary Wollstonecraft

Re: COBOL and tricks

<tb8mg1$1i9o2$11@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7793&group=comp.os.linux.misc#7793

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 11:47:29 +0100
Organization: A little, after lunch
Lines: 17
Message-ID: <tb8mg1$1i9o2$11@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<tb75ku$16lh5$1@dont-email.me>
<546414099.679965764.141022.peter_flass-yahoo.com@news.eternal-september.org>
<XZHBK.98715$%i2.91671@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Jul 2022 10:47:30 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="41d5fbc2a0edf0eef929a5b2ecaedfd3";
logging-data="1648386"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kZoRz4LzvvcTMno2Y5if2LuEDmEF4oSA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Cancel-Lock: sha1:mJ/JG79p1MoiHDNt4xp8DLsWO0Q=
Content-Language: en-GB
In-Reply-To: <XZHBK.98715$%i2.91671@fx48.iad>
 by: The Natural Philosop - Wed, 20 Jul 2022 10:47 UTC

On 20/07/2022 01:27, Charlie Gibbs wrote:
> remember
> that a subroutine call is just a GOTO paired with a "come from".
> It's still spaghetti code, just with double strands.
LOL!

It's just another example of 'rules are for the guidance of wise ,men,
and the obedience of idiots'

The goal was clear understandable program flow. Sometimes an 'Go
immediately to jail, do not collect $200' is in fact easier to understand

--
"And if the blind lead the blind, both shall fall into the ditch".

Gospel of St. Mathew 15:14

Re: COBOL and tricks

<tb8n81$1ird3$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7794&group=comp.os.linux.misc#7794

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 12:00:16 +0100
Organization: A little, after lunch
Lines: 40
Message-ID: <tb8n81$1ird3$1@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me> <87k0887hoo.fsf@localhost>
<1843530070.679971412.838001.peter_flass-yahoo.com@news.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Jul 2022 11:00:17 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="41d5fbc2a0edf0eef929a5b2ecaedfd3";
logging-data="1666467"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ESsL5sAg37i2fICJMDXrlFq9c/4pGxQA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Cancel-Lock: sha1:Po10LE7cV6nyu6b8muD44XbUNOY=
Content-Language: en-GB
In-Reply-To: <1843530070.679971412.838001.peter_flass-yahoo.com@news.eternal-september.org>
 by: The Natural Philosop - Wed, 20 Jul 2022 11:00 UTC

On 20/07/2022 02:10, Peter Flass wrote:
> but efficiency has never been a top
> goal for OO languages, far behind ease of coding and maintenance.

You might say that, I couldn't possibly comment.

But I will.
In many cases OO is a round hole into which far too many square
procedural pegs are forced.

This makes it very slow to code, and very hard to maintain/.

The beauty of C for me is that you could write it like assembler for
speed, or you could use its ability to limit lexical scope to write what
were essentially objects.
The ability to create efficient local storage using te stack, was
superb. Of course the downside of overwriting buffers and thesreturn
address with ugly unchecked code was not great.
But if you want to use a chainsaw, dont fuck around., Follow the basic rules

Todays OO is like to days suburban streets. Slow suspension smashing
fuel guzzling dangerous nightmares designed to force people to adopt
what good drivers do anyway. Take care not to kill other people.

So that complete idiots can now write code, And, I am afraid, it shows.
The quality of public websites is execrable.,: I cant recount the number
of minutes I have wasted on the phone with a person struggling at the
other end to make the 'new computer system' find my records, by
searching on one of up to ten different screens...only to find that
whilst the code to add new customers has been finely optimised, the code
to remove on does not even exist.

I think that writing a flow chart or a state diagram is a discipline
that programmers might well learn, instead of creation a dictionary of
objects..
--
"And if the blind lead the blind, both shall fall into the ditch".

Gospel of St. Mathew 15:14

Re: COBOL and tricks

<2LTBK.548015$5fVf.456270@fx09.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7796&group=comp.os.linux.misc#7796

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: COBOL and tricks
Newsgroups: alt.folklore.computers,comp.os.linux.misc
References: <871quvs7m8.fsf@usenet.ankman.de> <tb1iih$3pthf$2@dont-email.me> <cL_AK.547297$X_i.178414@fx18.iad> <JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com> <1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org> <tb6u29$15u9k$2@dont-email.me> <2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org> <tb71r6$14eug$1@dont-email.me> <87k0887hoo.fsf@localhost> <1843530070.679971412.838001.peter_flass-yahoo.com@news.eternal-september.org>
Lines: 25
Message-ID: <2LTBK.548015$5fVf.456270@fx09.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 20 Jul 2022 13:50:54 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 20 Jul 2022 13:50:54 GMT
X-Received-Bytes: 2285
 by: Scott Lurndal - Wed, 20 Jul 2022 13:50 UTC

Peter Flass <peter_flass@yahoo.com> writes:
>Anne & Lynn Wheeler <lynn@garlic.com> wrote:
>> Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes:
>>> A long time ago, I worked on many COBOL applications, including a
>>> client (PC) / server (MVS) communications application. I've seen
>>> things that I cannot unsee, coded things that I cannot uncode.
>>
>> around turn of the century was brought into look at performance of 450K
>> Cobol statement application that ran on 40+ max configured IBM
>> mainframes (@$30M, >$1B, number needed to finish batch settlement in
>> overnight window). They had large group responsible for the performance
>> care & feeding, but got somewhat myopically focused.
>>
>> I used some other analysis tools from the IBM science center in the
>> early 70s and found 14% improvement.
>>
>> There was another performance consultant that was brought in and found a
>> different 7% improvement.
>
>I’m not a performance guru, but it seems like only 15-20% improvement in
>old code that’s probably been beat up for years would indicate the code was
>fairly decent to begin with.

Or it would indicate that the code was so poorly written that it would
take a complete rewrite to make it perform better.

Re: Fwd: Linux on a small memory PC

<1478666772.680028969.357686.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7797&group=comp.os.linux.misc#7797

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_fl...@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: Fwd: Linux on a small memory PC
Date: Wed, 20 Jul 2022 10:04:39 -0700
Organization: A noiseless patient Spider
Lines: 90
Message-ID: <1478666772.680028969.357686.peter_flass-yahoo.com@news.eternal-september.org>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb8m6v$1i9o2$10@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="b467a8e89eca0db1d03116944aa099cd";
logging-data="1847496"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180hlJoYuxjEgsthQoHUm7w"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:ydpUUFqVgcah9uh/pk5sgw4MR0E=
sha1:1AyJ7TQBKEGKuOFVO/Pi7p55iw4=
 by: Peter Flass - Wed, 20 Jul 2022 17:04 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 19/07/2022 19:58, Peter Flass wrote:
>> The Natural Philosopher <tnp@invalid.invalid> wrote:
>>> On 19/07/2022 18:48, Peter Flass wrote:
>>>> 25B.Z959 <25B.Z959@nada.net> wrote:
>>>>> On 7/17/22 4:59 PM, Charlie Gibbs wrote:
>>>>>> [Cross-posted to alt.folklore.computers]
>>>>>>
>>>>>> On 2022-07-17, Dan Espen <dan1espen@gmail.com> wrote:
>>>>>>
>>>>>>> Charlie Gibbs <cgibbs@kltpzyxm.invalid> writes:
>>>>>>>
>>>>>>>> On 2022-07-17, 25B.Z959 <25B.Z959@nada.net> wrote:
>>>>>>>>
>>>>>>>>> On 7/16/22 8:48 AM, Dan Espen wrote:
>>>>>>>>>
>>>>>>>>>> "25B.Z959" <25B.Z959@nada.net> writes:
>>>>>>>>>>
>>>>>>>>>>> Fortunately, few are so cheap to be using 2-digit dates
>>>>>>>>>>> anymore. Not so in the past - they just assumed 19xx. Saved a
>>>>>>>>>>> little space, easier calx.
>>>>>>>>>>
>>>>>>>>>> There you go, true to form. Now people use 2 digit dates because
>>>>>>>>>> they are cheap.
>>>>>>>>>
>>>>>>>>> You are neglecting Computers Past ..... low speed, low
>>>>>>>>> capacity. You simplified calx, you squeezed-down the data anywhere
>>>>>>>>> you could. I know, I had to do it.
>>>>>>>>
>>>>>>>> Me too. My first job was in an all-card shop. To squeeze things onto
>>>>>>>> an 80-column card, we stored dates in 5 columns as ddmmy. That's
>>>>>>>> right, we only kept the last digit of the year. I started there in
>>>>>>>> 1970, and one of my first assignments was to go through all report
>>>>>>>> programs and change the '6' they inserted in front of the year to '7'.
>>>>>>>
>>>>>>> In an all card shop having more than 1 card for a logical record is a
>>>>>>> problem. Not insurmountable but difficult. I've heard the one digit
>>>>>>> year story in that context but never had to deal with it.
>>>>>>
>>>>>> We used two cards for customer name data, but they didn't have dates
>>>>>> in them, just long names. You're right, having more than one card
>>>>>> for a logical record is a pain in the ass. I use the present tense
>>>>>> because I'm still faced with such files today.
>>>>>
>>>>>
>>>>> Yep - the past IS present ... old records never die, they
>>>>> just become more inconvenient. :-)
>>>>>
>>>>> Amazing how many institutions STILL run COBOL apps writ
>>>>> during the 60s by the guys with skinny ties. They work
>>>>> very well, they're too expensive to re-do, so ....
>>>>>
>>>>> There's probably a COBOL->C++ or JAVA translator out
>>>>> there somewhere ... but money's so tight these days
>>>>> and so many of those legacy apps are so super-critical
>>>>> that they just can't/won't.
>>>>>
>>>>
>>>> Maybe these are better than translators I have seen, but old ones produced
>>>> unreadable code, and they might well miss some litte tricks that the old
>>>> guys put in, and so leave time-bombs in the translated program. Much more
>>>> expensive, but a lot better, is to extract the specs from the existing
>>>> code, and there are re-engineering programs that can probably do a lot of
>>>> that work, and then rewrite in the new language using programmers skilled
>>>> in that language.
>>>>
>>>>
>>> TBH you cant do many tricks in COBOL and the whole thrust of the bloody
>>> language is 'do it by the book, and write the book as documentation, as
>>> well'
>>>
>>
>> How much would you like to bet? Yes, the language encourages
>> straightforward programming, but I’ve seen things…
>>
> COBOL IME was generally written by teams of coders after the analysts
> had written the specification, to strict coding standards which if not
> adhered to got you the sack.
>
>

Maybe in some places, but that wasn’t the rule as I’ve seen it. Most shops
had programmer/analysts where one individual was assigned to work with the
customers, design the system, and do the programming, testing, conversion,
etc. I worked one place that had a separate analyst group, and that
engendered a lot of griping among the programmers. Fortunately by that time
I was a sysprog and didn’t have to deal with that foolishness.

--
Pete

Re: COBOL and tricks

<1271673920.680029245.492506.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7798&group=comp.os.linux.misc#7798

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_fl...@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 10:04:40 -0700
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <1271673920.680029245.492506.peter_flass-yahoo.com@news.eternal-september.org>
References: <ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<tb75ku$16lh5$1@dont-email.me>
<546414099.679965764.141022.peter_flass-yahoo.com@news.eternal-september.org>
<XZHBK.98715$%i2.91671@fx48.iad>
<tb8mg1$1i9o2$11@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="b467a8e89eca0db1d03116944aa099cd";
logging-data="1847496"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oQlT17CCmzTVD5Oa0sHE8"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:8oq/nbeBPLJdNFagDB6pkta87+s=
sha1:A+sAdYkdhcQyc/RPpCZQVvFTG3A=
 by: Peter Flass - Wed, 20 Jul 2022 17:04 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 20/07/2022 01:27, Charlie Gibbs wrote:
>> remember
>> that a subroutine call is just a GOTO paired with a "come from".
>> It's still spaghetti code, just with double strands.
> LOL!
>
> It's just another example of 'rules are for the guidance of wise ,men,
> and the obedience of idiots'
>
> The goal was clear understandable program flow. Sometimes an 'Go
> immediately to jail, do not collect $200' is in fact easier to understand
>

I usually try to write structured code, but sometimes a GOTO is the best
way to get out of someplace several levels deep.

--
Pete

Re: COBOL and tricks

<1266318496.680029419.236104.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7799&group=comp.os.linux.misc#7799

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_fl...@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 10:04:41 -0700
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <1266318496.680029419.236104.peter_flass-yahoo.com@news.eternal-september.org>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<87k0887hoo.fsf@localhost>
<1843530070.679971412.838001.peter_flass-yahoo.com@news.eternal-september.org>
<tb8n81$1ird3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="b467a8e89eca0db1d03116944aa099cd";
logging-data="1847496"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mbswZbixdMdJ8W0xzHpNi"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:Vh4R1SoFTccddxQMgx/nqpM3LRQ=
sha1:FGRLpjXg36CccS75eXNS/VJlyIY=
 by: Peter Flass - Wed, 20 Jul 2022 17:04 UTC

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 20/07/2022 02:10, Peter Flass wrote:
>> but efficiency has never been a top
>> goal for OO languages, far behind ease of coding and maintenance.
>
> You might say that, I couldn't possibly comment.
>
> But I will.
> In many cases OO is a round hole into which far too many square
> procedural pegs are forced.
>
> This makes it very slow to code, and very hard to maintain/.
>
> The beauty of C for me is that you could write it like assembler for
> speed, or you could use its ability to limit lexical scope to write what
> were essentially objects.
> The ability to create efficient local storage using te stack, was
> superb. Of course the downside of overwriting buffers and thesreturn
> address with ugly unchecked code was not great.
> But if you want to use a chainsaw, dont fuck around., Follow the basic rules
>
> Todays OO is like to days suburban streets. Slow suspension smashing
> fuel guzzling dangerous nightmares designed to force people to adopt
> what good drivers do anyway. Take care not to kill other people.
>
> So that complete idiots can now write code, And, I am afraid, it shows.
> The quality of public websites is execrable.,: I cant recount the number
> of minutes I have wasted on the phone with a person struggling at the
> other end to make the 'new computer system' find my records, by
> searching on one of up to ten different screens...only to find that
> whilst the code to add new customers has been finely optimised, the code
> to remove on does not even exist.
>
> I think that writing a flow chart or a state diagram is a discipline
> that programmers might well learn, instead of creation a dictionary of
> objects..

I occasionally still do both.

--
Pete

Re: COBOL and tricks

<1452020502.680029459.171086.peter_flass-yahoo.com@news.eternal-september.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7800&group=comp.os.linux.misc#7800

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: peter_fl...@yahoo.com (Peter Flass)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 10:04:42 -0700
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <1452020502.680029459.171086.peter_flass-yahoo.com@news.eternal-september.org>
References: <871quvs7m8.fsf@usenet.ankman.de>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<87k0887hoo.fsf@localhost>
<1843530070.679971412.838001.peter_flass-yahoo.com@news.eternal-september.org>
<2LTBK.548015$5fVf.456270@fx09.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="b467a8e89eca0db1d03116944aa099cd";
logging-data="1847496"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cynnlcv/1X+b8iKgJgrVJ"
User-Agent: NewsTap/5.3.1 (iPad)
Cancel-Lock: sha1:ZIlXFDetgvc7US5lyxTG30+ASHI=
sha1:SKljMXmYAMbps+qnK1m8GrVvGiA=
 by: Peter Flass - Wed, 20 Jul 2022 17:04 UTC

Scott Lurndal <scott@slp53.sl.home> wrote:
> Peter Flass <peter_flass@yahoo.com> writes:
>> Anne & Lynn Wheeler <lynn@garlic.com> wrote:
>>> Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes:
>>>> A long time ago, I worked on many COBOL applications, including a
>>>> client (PC) / server (MVS) communications application. I've seen
>>>> things that I cannot unsee, coded things that I cannot uncode.
>>>
>>> around turn of the century was brought into look at performance of 450K
>>> Cobol statement application that ran on 40+ max configured IBM
>>> mainframes (@$30M, >$1B, number needed to finish batch settlement in
>>> overnight window). They had large group responsible for the performance
>>> care & feeding, but got somewhat myopically focused.
>>>
>>> I used some other analysis tools from the IBM science center in the
>>> early 70s and found 14% improvement.
>>>
>>> There was another performance consultant that was brought in and found a
>>> different 7% improvement.
>>
>> I’m not a performance guru, but it seems like only 15-20% improvement in
>> old code that’s probably been beat up for years would indicate the code was
>> fairly decent to begin with.
>
> Or it would indicate that the code was so poorly written that it would
> take a complete rewrite to make it perform better.
>

There’s always that, too.

--
Pete

Re: COBOL and tricks

<VLWBK.527039$ntj.306258@fx15.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7801&group=comp.os.linux.misc#7801

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
Newsgroups: alt.folklore.computers,comp.os.linux.misc
From: cgi...@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: COBOL and tricks
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<335435828.679953020.282791.peter_flass-yahoo.com@news.eternal-september.org>
<tb75ku$16lh5$1@dont-email.me>
<546414099.679965764.141022.peter_flass-yahoo.com@news.eternal-september.org>
<tb7sbg$1c221$1@dont-email.me>
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 20
Message-ID: <VLWBK.527039$ntj.306258@fx15.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 20 Jul 2022 17:16:37 UTC
Date: Wed, 20 Jul 2022 17:16:37 GMT
X-Received-Bytes: 2311
 by: Charlie Gibbs - Wed, 20 Jul 2022 17:16 UTC

On 2022-07-20, Dan Espen <dan1espen@gmail.com> wrote:

> Peter Flass <peter_flass@yahoo.com> writes:
>
>> One of the best things to happen in programming is that (at least some)
>> programmers learned how to write clean, straightforward, well-documented
>> code. I’ve looked at some early FORTRAN programs, too, and they’re the
>> same. Control jumps all over the place, and no one ever, ever, wrote a
>> comment.
>
> Yep, why would they? The flowchart was the documentation.

Who needs a flow chart? "My {program|language} is so readable
that you don't need comments."

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: COBOL and tricks

<VLWBK.527040$ntj.346165@fx15.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7802&group=comp.os.linux.misc#7802

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
Newsgroups: alt.folklore.computers,comp.os.linux.misc
From: cgi...@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: COBOL and tricks
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<20220720100622.21071f6aa136e4b87fc38ff6@127.0.0.1>
User-Agent: slrn/1.0.3 (Linux)
Lines: 21
Message-ID: <VLWBK.527040$ntj.346165@fx15.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 20 Jul 2022 17:16:37 UTC
Date: Wed, 20 Jul 2022 17:16:37 GMT
X-Received-Bytes: 2107
 by: Charlie Gibbs - Wed, 20 Jul 2022 17:16 UTC

On 2022-07-20, Kerr-Mudd, John <admin@127.0.0.1> wrote:

> On Wed, 20 Jul 2022 02:50:57 -0000 (UTC)
> Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
> []
>
>> Those of us who coded COBOL for a living kept a boilerplate^W
>> template program handy, just so we didn't have to fill in all that
>> language /just/ to get a program started.
>
> Ah that old chestnut: "I'll start coding, you go and find out what the user
> wants".

Been there, done that - although I was on the receiving end of:
"You start coding, I'll find out what the user wants."

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: COBOL and tricks

<WLWBK.527041$ntj.183054@fx15.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7803&group=comp.os.linux.misc#7803

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
Newsgroups: alt.folklore.computers,comp.os.linux.misc
From: cgi...@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: COBOL and tricks
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
User-Agent: slrn/1.0.3 (Linux)
Lines: 53
Message-ID: <WLWBK.527041$ntj.183054@fx15.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 20 Jul 2022 17:16:38 UTC
Date: Wed, 20 Jul 2022 17:16:38 GMT
X-Received-Bytes: 3306
 by: Charlie Gibbs - Wed, 20 Jul 2022 17:16 UTC

On 2022-07-20, Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:

> On Tue, 19 Jul 2022 22:34:40 -0400, 25B.Z959 wrote:
>
>> Got any of it on a floppy or print-out anywhere ? I'd
>> love to see how to do client/server only using COBOL.

<snip>

> As this was an in-house "inner platform" project (3 tier client/server
> architecture, circa 1990), I did not keep personal copies of any
> of the code.

Indeed, that wasn't common practice in those days. Besides, before
personal computers, what would you keep it on that you could read
at home? Mind you, if I look hard I might be able to find a COBOL
program I wrote to convert a report to PostScript, which we sent
to an Apple Laserwriter we had lying around.

> Suffice it to say that my first question to the architect,
> my first day on that project, was "Why COBOL?" The answer was "Because
> that's what the coders know."

The only reason everyone uses COBOL is that everyone uses COBOL.
-- me

>> COBOL was deliberately made to do "business stuff" in a
>> super-wordy fashion that was SUPPOSED to be "self documenting".
>
> Agreed. That was the defining component of COBOL, and perhaps it's
> saving grace.

One day, our inside sales manager, Al Tannock (a bit of a wit -
in his own mind, at least), walked in and said to our new DP manager
(more than a bit of a wit in reality): "Say something in COBOL."

Without hesitation our guy shot back:

EXAMINE ROOM REPLACING ALL TANNOCKS WITH SPACES.

>> Maybe the only language requiring more text than Java :-)
>
> Those of us who coded COBOL for a living kept a boilerplate^W
> template program handy, just so we didn't have to fill in all that
> language /just/ to get a program started.

Heck, I still do that today in C.

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: Fwd: Linux on a small memory PC

<WLWBK.527042$ntj.319471@fx15.iad>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7804&group=comp.os.linux.misc#7804

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
Newsgroups: alt.folklore.computers,comp.os.linux.misc
From: cgi...@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: Fwd: Linux on a small memory PC
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb8m6v$1i9o2$10@dont-email.me>
User-Agent: slrn/1.0.3 (Linux)
Lines: 29
Message-ID: <WLWBK.527042$ntj.319471@fx15.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 20 Jul 2022 17:16:38 UTC
Date: Wed, 20 Jul 2022 17:16:38 GMT
X-Received-Bytes: 2746
 by: Charlie Gibbs - Wed, 20 Jul 2022 17:16 UTC

On 2022-07-20, The Natural Philosopher <tnp@invalid.invalid> wrote:

> COBOL IME was generally written by teams of coders after the analysts
> had written the specification, to strict coding standards which if not
> adhered to got you the sack.

I once wrote some programs in a shop where I was given specs that were
so detailed that I could probably have written a compiler for them.
Unfortunately, I identified a number of cases that the specs didn't cover.
When I asked about this, I was given the answer which is now at the top
of my list of Famous Last Words: "Oh, don't worry about that - it'll
never happen." Since I had enough experience by this time to know that
"never" is usually about six months, I refused to proceed until all
cases were accounted for. Beware of nasal demons!

As for coding standards, this shop's standards were so inefficient
that it would take a job half an hour just to schedule, let alone run.
I threw their precious standards into the trash can and wrote the system
my way, which scheduled and ran in 30 seconds. When I was met with
the predictable howls of anguish, I told them that I wanted to get things
tested in a reasonable amount of time, and if they really wanted their
standards that badly they could change it back when I was done.
I doubt they ever did.

--
/~\ Charlie Gibbs | Microsoft is a dictatorship.
\ / <cgibbs@kltpzyxm.invalid> | Apple is a cult.
X I'm really at ac.dekanfrus | Linux is anarchy.
/ \ if you read it the right way. | Pick your poison.

Re: COBOL and tricks

<20220720200934.2b7b5243f759e34587c490ea@127.0.0.1>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7806&group=comp.os.linux.misc#7806

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 20:09:34 +0100
Organization: Dis
Lines: 23
Message-ID: <20220720200934.2b7b5243f759e34587c490ea@127.0.0.1>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad>
<tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<20220720100622.21071f6aa136e4b87fc38ff6@127.0.0.1>
<VLWBK.527040$ntj.346165@fx15.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader01.eternal-september.org; posting-host="b9079407e262bcbf60acbaf0f17fbdc0";
logging-data="1906726"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cWvUHzIGqwCWd21D8LiGHTa/WwXYxvf8="
Cancel-Lock: sha1:Y0/SJ9aoNIws+pTQbObsdy4i2Fg=
GNU: Terry Pratchett
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
;X-no-Archive: Maybe
 by: Kerr-Mudd, John - Wed, 20 Jul 2022 19:09 UTC

On Wed, 20 Jul 2022 17:16:37 GMT
Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:

> On 2022-07-20, Kerr-Mudd, John <admin@127.0.0.1> wrote:
>
> > On Wed, 20 Jul 2022 02:50:57 -0000 (UTC)
> > Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
> > []
> >
> >> Those of us who coded COBOL for a living kept a boilerplate^W
> >> template program handy, just so we didn't have to fill in all that
> >> language /just/ to get a program started.
> >
> > Ah that old chestnut: "I'll start coding, you go and find out what the user
> > wants".
>
> Been there, done that - although I was on the receiving end of:
> "You start coding, I'll find out what the user wants."
>
I may have mis-remembered; your phrasing sounds better.

--
Bah, and indeed Humbug.

Re: COBOL and tricks

<tb9l5d$1ki8b$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=7807&group=comp.os.linux.misc#7807

  copy link   Newsgroups: alt.folklore.computers comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: alt.folklore.computers,comp.os.linux.misc
Subject: Re: COBOL and tricks
Date: Wed, 20 Jul 2022 19:30:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <tb9l5d$1ki8b$2@dont-email.me>
References: <871quvs7m8.fsf@usenet.ankman.de>
<ouSdnQ4MiuXqxFf_nZ2dnUU7-L3NnZ2d@earthlink.com>
<87sfn8pr5t.fsf@usenet.ankman.de>
<UN6dnUE56LtnLE3_nZ2dnUU7-fXNnZ2d@earthlink.com>
<87zghai2dh.fsf@usenet.ankman.de>
<16ydncnktcv0sE__nZ2dnUU7-Q3NnZ2d@earthlink.com>
<tauc3e$3cjkn$1@dont-email.me>
<BbKdnS4bVeX7G07_nZ2dnUU7-RXNnZ2d@earthlink.com>
<L0XAK.382240$ssF.266663@fx14.iad> <tb1iih$3pthf$2@dont-email.me>
<cL_AK.547297$X_i.178414@fx18.iad>
<JJadnSUvZb3dlUv_nZ2dnUU7-fXNnZ2d@earthlink.com>
<1034215367.679945065.348792.peter_flass-yahoo.com@news.eternal-september.org>
<tb6u29$15u9k$2@dont-email.me>
<2074045549.679949818.212355.peter_flass-yahoo.com@news.eternal-september.org>
<tb71r6$14eug$1@dont-email.me>
<2aadnYfne4Fc9Er_nZ2dnUU7-WnNnZ2d@earthlink.com>
<tb7qih$14eug$2@dont-email.me>
<20220720100622.21071f6aa136e4b87fc38ff6@127.0.0.1>
<VLWBK.527040$ntj.346165@fx15.iad>
<20220720200934.2b7b5243f759e34587c490ea@127.0.0.1>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Jul 2022 19:30:53 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="952078029a226ab95cbf9739b6963287";
logging-data="1722635"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OdC+EPxmyQrhOMqyjpL4SCfNyZDqeYU4="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:c/HBw6CuaJ19nkcgs+yO58uJqcE=
 by: Lew Pitcher - Wed, 20 Jul 2022 19:30 UTC

On Wed, 20 Jul 2022 20:09:34 +0100, Kerr-Mudd, John wrote:

> On Wed, 20 Jul 2022 17:16:37 GMT
> Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:
>
>> On 2022-07-20, Kerr-Mudd, John <admin@127.0.0.1> wrote:
>>
>> > On Wed, 20 Jul 2022 02:50:57 -0000 (UTC)
>> > Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
>> > []
>> >
>> >> Those of us who coded COBOL for a living kept a boilerplate^W
>> >> template program handy, just so we didn't have to fill in all that
>> >> language /just/ to get a program started.
>> >
>> > Ah that old chestnut: "I'll start coding, you go and find out what the user
>> > wants".
>>
>> Been there, done that - although I was on the receiving end of:
>> "You start coding, I'll find out what the user wants."
>>
> I may have mis-remembered; your phrasing sounds better.

Shops differ. We had a very involved user community, and no lack
of requirements and specifications. Our task, as architects,
designers, and developers, was to keep up with our users. It didn't
hurt that we had both regulatory and fiduciary requirements and
deadlines to satisfy as well. Such is life in a big bank.

--
Lew Pitcher
"In Skills, We Trust"


computers / comp.os.linux.misc / Re: COBOL and tricks

Pages:12345678910111213141516171819202122232425262728293031
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor