Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You may worry about your hair-do today, but tomorrow much peanut butter will be sold.


comp / comp.os.linux.misc / Re: Joy of this, Joy of that

SubjectAuthor
* Joy of this, Joy of thatroot
+* Re: Joy of this, Joy of thatLawrence D'Oliveiro
|`* Re: Joy of this, Joy of thatroot
| +- Re: Joy of this, Joy of thatLawrence D'Oliveiro
| `- Re: Joy of this, Joy of thatrbowman
`* Re: Joy of this, Joy of that186282@ud0s4.net
 +* Re: Joy of this, Joy of thatRich
 |+- Re: Joy of this, Joy of thatThe Natural Philosopher
 |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | +* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |`- Re: Joy of this, Joy of thatBozo User
 | +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |`* Re: Joy of this, Joy of thatDon_from_AZ
 | | `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |  `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |   +* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |   |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |   | +* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |   | |`- Re: Joy of this, Joy of that186282@ud0s4.net
 | |   | `- Re: Joy of this, Joy of thatrbowman
 | |   `* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |    +- Re: Joy of this, Joy of thatrbowman
 | |    +* Re: Joy of this, Joy of thatLouis Krupp
 | |    |`- Re: Joy of this, Joy of thatRich
 | |    +- Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |    `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |     +- Re: Joy of this, Joy of thatrbowman
 | |     `* Re: Joy of this, Joy of thatRich
 | |      +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      |+* Re: Joy of this, Joy of thatRich
 | |      ||`* Re: Joy of this, Joy of thatD
 | |      || `* Re: Joy of this, Joy of thatrbowman
 | |      ||  `* Re: Joy of this, Joy of thatD
 | |      ||   `* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||    +* Re: Joy of this, Joy of thatD
 | |      ||    |`* Re: Joy of this, Joy of thatrbowman
 | |      ||    | +- Re: Joy of this, Joy of thatD
 | |      ||    | `* Re: Joy of this, Joy of thatPancho
 | |      ||    |  `* Re: Joy of this, Joy of thatRich
 | |      ||    |   +* Re: Joy of this, Joy of thatChris Ahlstrom
 | |      ||    |   |`- Re: Joy of this, Joy of thatPancho
 | |      ||    |   `* Re: Joy of this, Joy of thatrbowman
 | |      ||    |    +* Re: Joy of this, Joy of thatD
 | |      ||    |    |+- Re: Joy of this, Joy of thatRich
 | |      ||    |    |`* Re: Joy of this, Joy of thatrbowman
 | |      ||    |    | `- Re: Joy of this, Joy of thatD
 | |      ||    |    `* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||    |     `* Re: Joy of this, Joy of thatrbowman
 | |      ||    |      `- Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||    `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||     `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||      `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||       `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        +* Re: Joy of this, Joy of thatrbowman
 | |      ||        |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        | +* Re: Joy of this, Joy of thatrbowman
 | |      ||        | |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        | | `- Re: Joy of this, Joy of thatrbowman
 | |      ||        | `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |  `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   +* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   | +- Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |   | `* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |  +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |  |`- Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |   |  `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |   +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |   |+* Re: Joy of this, Joy of thatRich
 | |      ||        |   |   ||`- Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |   |+- Re: Joy of this, Joy of thatD
 | |      ||        |   |   |`- Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |   +* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |   |   |`- Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |   `* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |    `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |     +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |     |`- Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |     `* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |      `* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       +* Re: Joy of this, Joy of thatD
 | |      ||        |   |       |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | +* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |       | |+* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | ||+* Re: Joy of this, Joy of thatCharlie Gibbs
 | |      ||        |   |       | |||+* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | ||||`* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| +* Re: Joy of this, Joy of thatRich
 | |      ||        |   |       | |||| |`* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| | `* Re: Joy of this, Joy of thatRich
 | |      ||        |   |       | |||| |  +* Re: Joy of this, Joy of thatCharlie Gibbs
 | |      ||        |   |       | |||| |  |`- Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| |  `* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| |   +* Re: Joy of this, Joy of thatRich
 | |      ||        |   |       | |||| |   |+* Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |       | |||| |   ||`* Re: Joy of this, Joy of thatRich
 | |      ||        |   |       | |||| |   || +* Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |       | |||| |   || |`* Re: Joy of this, Joy of thatCharlie Gibbs
 | |      ||        |   |       | |||| |   || | `- Re: Joy of this, Joy of thatThe Natural Philosopher
 | |      ||        |   |       | |||| |   || +- Re: Joy of this, Joy of thatCharlie Gibbs
 | |      ||        |   |       | |||| |   || `- Re: Joy of this, Joy of thatrbowman
 | |      ||        |   |       | |||| |   |`- Re: Joy of this, Joy of thatD
 | |      ||        |   |       | |||| |   `* Re: Joy of this, Joy of thatRobert Riches
 | |      ||        |   |       | |||| `- Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | |||`* Re: Joy of this, Joy of thatD
 | |      ||        |   |       | ||`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | |`* Re: Joy of this, Joy of that186282@ud0s4.net
 | |      ||        |   |       | `* Re: Joy of this, Joy of thatD
 | |      ||        |   |       `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        |   `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      ||        `* Re: Joy of this, Joy of thatLawrence D'Oliveiro
 | |      |`* Re: Joy of this, Joy of thatvallor
 | |      `* Re: Joy of this, Joy of thatD
 | `- Re: Joy of this, Joy of thatRich
 +* Re: Joy of this, Joy of thatJohn Ames
 `- Re: Joy of this, Joy of thatrbowman

Pages:12345678910111213141516171819202122232425262728293031323334
Subject: Re: Joy of this, Joy of that
From: Pancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 21 Nov 2024 08:09 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Thu, 21 Nov 2024 08:09:29 +0000
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <vhmprp$iaf1$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Nov 2024 09:09:29 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ed48124f0172ae05bb3f42fa825eb325";
logging-data="600545"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+weklccpmxwOXfiA40GtK7U3gER9UDmcg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:gNkGYSJvNqZ/QYZuiJiGy15uva8=
In-Reply-To: <vhlium$93kn$1@dont-email.me>
Content-Language: en-GB
View all headers

On 11/20/24 21:05, Rich wrote:
> John Ames <commodorejohn@gmail.com> wrote:
>> On Wed, 20 Nov 2024 03:37:58 -0500
>> "186282@ud0s4.net" <186283@ud0s4.net> wrote:
>>
>>> Hmmmmmmmm ... how many now have EVER programmed in BASIC ? Should do
>>> a survey .....
>>
>> Lord, who hasn't!? Well, probably depends on how you choose to qualify
>> it - we still use VB6 in-house at $EMPLOYER, and FreeBASIC is my go-to
>> for hacking together quick utility applications in daily life, but I
>> haven't touched old-school line-number spaghetti-Gotoese BASIC since
>> childhood, and certainly never built any application of real complexity
>> with it. Bet more than a few people here have, though, especially if we
>> cross-posted over to a.f.computers...
>
> Given the typical age of most posters here, I'd say nearly every one of
> us has written /something/ in one or more of the 75 different variants
> of "BASIC" that have existed over time.
>

For me: BBC Basic, VAX Basic, Visual Basic (&VBA).

GOTO was deprecated before BBC Basic circa 1981. I never really saw it,
apart from reasonable GOTO error usages. Wasn't it more a sign of lack
of training than a linguistic feature?

Subject: Re: Joy of this, Joy of that
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 21 Nov 2024 08:14 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Thu, 21 Nov 2024 08:14:58 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <vhmq62$ieur$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<vhl090$5ghq$1@dont-email.me>
<w4adnUM659THQqP6nZ2dnZfqnPednZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Nov 2024 09:14:58 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ef08745908c980c7c50adf3dc90da7e8";
logging-data="605147"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Jaf5cymeaWsRFlFMqyqPc"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:rVoOlK8PdV6R0Opsz3FRiLg6ulk=
View all headers

On Thu, 21 Nov 2024 02:20:58 -0500, 186282@ud0s4.net wrote:

> On 11/20/24 10:46 AM, Rich wrote:
>>
>> If JS or Perl are your yardstick for "never liked" you must never have
>> attempted to write an AutoHotKey script to automate something on a
>> windows machine.
>
> Tried a hotkey daemon once, DOS-era, but eventually bought one writ
> by better programmers. Automated Winders ... again a real pain in the
> ass.

GUIs were never designed to be automated. Which is why trying to do so is
fiddly, fragile and just plain unreliable.

> DOS was better at that.

Command line, of course -- naturally better for automation purposes.
Though the DOS one was a pitiful toy reimplementation of what was, and
still is, available on *nix systems.

Subject: Re: Joy of this, Joy of that
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Thu, 21 Nov 2024 13:41 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Thu, 21 Nov 2024 13:41:42 +0000
Organization: A little, after lunch
Lines: 11
Message-ID: <vhndam$ljks$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<vhl090$5ghq$1@dont-email.me>
<w4adnUM659THQqP6nZ2dnZfqnPednZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Nov 2024 14:41:42 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f9384d2119a62e0f850f8ef959c1f6d8";
logging-data="708252"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ut+aNA8Hg5V2Nr8E33xH6BsxVVf9ueDM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mLUixjNJPI8e4Uyz9WyF8ZISazs=
In-Reply-To: <w4adnUM659THQqP6nZ2dnZfqnPednZ2d@earthlink.com>
Content-Language: en-GB
View all headers

On 21/11/2024 07:20, 186282@ud0s4.net wrote:
> I take it you're also not a fan of Perl  🙂

Perfectly Execrable Rubbish Language

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

Gospel of St. Mathew 15:14

Subject: Re: Joy of this, Joy of that
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Thu, 21 Nov 2024 15:45 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!news.mixmin.net!border-1.nntp.ord.giganews.com!local-4.nntp.ord.giganews.com!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 21 Nov 2024 15:45:46 +0000
Subject: Re: Joy of this, Joy of that
Newsgroups: comp.os.linux.misc
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Thu, 21 Nov 2024 10:45:22 -0500
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: <vhmprp$iaf1$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
Lines: 41
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-E2SD5mFTXRCl3aXATsBCK52Tmy2eZoMwAYJikTg6ldlXqttwbjSloOy+vC0uoJsily71fgE2AswnW4y!MDCrEI5yhNx3u+u69dvTVkJp5HVuL8RMVSVXwLSm/rr4WhS7jtlXxAhzSNrHYZxZWGd9MAmDAnFR!3GSaZYaH8WLcBUVDF+V7
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
View all headers

On 11/21/24 3:09 AM, Pancho wrote:
> On 11/20/24 21:05, Rich wrote:
>> John Ames <commodorejohn@gmail.com> wrote:
>>> On Wed, 20 Nov 2024 03:37:58 -0500
>>> "186282@ud0s4.net" <186283@ud0s4.net> wrote:
>>>
>>>> Hmmmmmmmm ... how many now have EVER programmed in BASIC ? Should do
>>>> a survey .....
>>>
>>> Lord, who hasn't!? Well, probably depends on how you choose to qualify
>>> it - we still use VB6 in-house at $EMPLOYER, and FreeBASIC is my go-to
>>> for hacking together quick utility applications in daily life, but I
>>> haven't touched old-school line-number spaghetti-Gotoese BASIC since
>>> childhood, and certainly never built any application of real complexity
>>> with it. Bet more than a few people here have, though, especially if we
>>> cross-posted over to a.f.computers...
>>
>> Given the typical age of most posters here, I'd say nearly every one of
>> us has written /something/ in one or more of the 75 different variants
>> of "BASIC" that have existed over time.
>>
>
> For me: BBC Basic, VAX Basic, Visual Basic (&VBA).
>
> GOTO was deprecated before BBC Basic circa 1981. I never really saw it,
> apart from reasonable GOTO error usages. Wasn't it more a sign of lack
> of training than a linguistic feature?

I found a good way to use GOTO however - in a handheld
device where you had to enter several kinds of data
about a location. The structure was a sort of "ladder"
and pressing buttons would take you up and down the
ladder via GOTOs. If you needed to edit yer last entry
you just jumped one step up. The handheld only had a
4-line display alas, so you couldn't show even one
entire record, only one prompt at a time.

Now each entry was only a few lines of code - the input,
an error-detector and the up/down GOTO thing. Easy to
keep track of. GOTO made the pgm simpler and more
compact.

Subject: Re: Joy of this, Joy of that
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 21 Nov 2024 17:25 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Thu, 21 Nov 2024 17:25:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <vhnqdn$nmqb$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me> <6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com> <vhl090$5ghq$1@dont-email.me> <w4adnUM659THQqP6nZ2dnZfqnPednZ2d@earthlink.com>
Injection-Date: Thu, 21 Nov 2024 18:25:11 +0100 (CET)
Injection-Info: dont-email.me; posting-host="68cad75f9e55e50db307f5ba2ae1be3d";
logging-data="777035"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uMUP3UfWprwPOwDtGr6yY"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:lS3+bGbJB6ganO2rK4nv/6TSOMc=
View all headers

186282@ud0s4.net <186283@ud0s4.net> wrote:
> On 11/20/24 10:46 AM, Rich wrote:
>> 186282@ud0s4.net <186283@ud0s4.net> wrote:
>>> NEVER liked JS or Perl ... but that's just me.
>>> Real-world, they seem to do their thing OK.
>>
>> If JS or Perl are your yardstick for "never liked" you must never have
>> attempted to write an AutoHotKey script to automate something on a
>> windows machine.
>
> Tried a hotkey daemon once, DOS-era, but eventually
> bought one writ by better programmers. Automated
> Winders ... again a real pain in the ass. DOS was
> better at that.

Automating a GUI is usually a major PIA.

>> The entire language looks like three shit-faced drunk language
>> designers teamed up with three stoned off their gourd language
>> designers and agreed to create the script language, and each put in
>> their own alcohol or mary jane fueled idea of how the language
>> should be designed.
>>
>> There's absolutely no consistency in anything in that language. One
>> thing one has to pass around are WID's (Window ID's) so that the
>> target window which is to receive the "automation" is identified.
>> Some functions have prototypes like this (note, these are made up
>> below):
>>
>> getxy(wid, result)
>>
>> Others have prototypes like this:
>>
>> move_to_x_y(x, y, wid)
>>
>> Others are this way
>>
>> recolor-window(x, wid, y, color, result)
>>
>> Still others use camel case
>>
>> getSomethingFromWindows(result, a, b, wid, q)
>>
>> Note now "wid" moves around in the prototype list, yet it is needed for
>> nearly every call. Also note the underscore vs. hyphen vs camel case
>> names.
>
> I take it you're also not a fan of Perl :-)

I wrote my share of Perl in a world long ago. I never had the
visiceral reaction to it that some Perl haters have had however,

AutoHotKey, however, was another several orders of magnitude above
Perl. Perl is just filled with "special characters that have special
meanings", but the meanings are at least consistent. $ is always
'scalar', % is always key value map, etc. AutoHotKey, however, would
have had % mean seven different meanings in the seven different places
it might be used to mean something.

> Hey, working with X stuff you also need to identify
> screens sometimes ... and they're not always readily
> identified - <something>:2:2

That was a given. What was asinine was some functions expected "winid,
x, y" as parameter order, others wanted "x,y,winid", still others did
"x,winid,something, y" and still others wanted "y, something1, x,
something2, winid). There was no consistency, anywhere, with any order
of parameters or of what parameters were always present. It literally
was as if drunk and stoned designers just threw crap at a wall, and
whatever stuck to the wall became the AutoHotKey script language.

Subject: Re: Joy of this, Joy of that
From: rbowman
Newsgroups: comp.os.linux.misc
Date: Thu, 21 Nov 2024 19:48 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: 21 Nov 2024 19:48:37 GMT
Lines: 11
Message-ID: <lq9h4kF2tegU1@mid.individual.net>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net jldoPBOsbxo5LHfUVOFDeQdK9FNy3lhZf49M9zMOcyW4hzaBJt
Cancel-Lock: sha1:hDJr9Z4f0dgLKjVtOp3+roAVJQY= sha256:r+CYjbrh86U4JEjJjxSspuM7T2T7VJMSUVt7jCmOkyw=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Thu, 21 Nov 2024 08:09:29 +0000, Pancho wrote:

> GOTO was deprecated before BBC Basic circa 1981. I never really saw it,
> apart from reasonable GOTO error usages. Wasn't it more a sign of lack
> of training than a linguistic feature?

I never understood the goto hate that Dijkstra had. It could be used to
produce hideous code but has valid uses. I'm amused by the syntactic sugar
used by many languages to conceal what is obviously a goto under the hood
amd of you dig far enough you get down to JMP, JNE, and similar opcodes.

Subject: Re: Joy of this, Joy of that
From: Pancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 21 Nov 2024 23:04 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Thu, 21 Nov 2024 23:04:57 +0000
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <vhoeap$r8gq$2@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
<LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 00:04:58 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a36b6143b3d24bc6978f336868c87ac8";
logging-data="893466"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197LemCu/JOmkedID+3ic0pNxMFq1VvOFE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jBPdC52TBCruWpwBAHuRXMx9VaE=
Content-Language: en-GB
In-Reply-To: <LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
View all headers

On 11/21/24 15:45, 186282@ud0s4.net wrote:
> On 11/21/24 3:09 AM, Pancho wrote:
>> On 11/20/24 21:05, Rich wrote:
>>> John Ames <commodorejohn@gmail.com> wrote:
>>>> On Wed, 20 Nov 2024 03:37:58 -0500
>>>> "186282@ud0s4.net" <186283@ud0s4.net> wrote:
>>>>
>>>>> Hmmmmmmmm ... how many now have EVER programmed in BASIC ? Should do
>>>>> a survey .....
>>>>
>>>> Lord, who hasn't!? Well, probably depends on how you choose to qualify
>>>> it - we still use VB6 in-house at $EMPLOYER, and FreeBASIC is my go-to
>>>> for hacking together quick utility applications in daily life, but I
>>>> haven't touched old-school line-number spaghetti-Gotoese BASIC since
>>>> childhood, and certainly never built any application of real complexity
>>>> with it. Bet more than a few people here have, though, especially if we
>>>> cross-posted over to a.f.computers...
>>>
>>> Given the typical age of most posters here, I'd say nearly every one of
>>> us has written /something/ in one or more of the 75 different variants
>>> of "BASIC" that have existed over time.
>>>
>>
>> For me: BBC Basic, VAX Basic, Visual Basic (&VBA).
>>
>> GOTO was deprecated before BBC Basic circa 1981. I never really saw
>> it, apart from reasonable GOTO error usages. Wasn't it more a sign of
>> lack of training than a linguistic feature?
>
>   I found a good way to use GOTO however - in a handheld
>   device where you had to enter several kinds of data
>   about a location. The structure was a sort of "ladder"
>   and pressing buttons would take you up and down the
>   ladder via GOTOs. If you needed to edit yer last entry
>   you just jumped one step up. The handheld only had a
>   4-line display alas, so you couldn't show even one
>   entire record, only one prompt at a time.
>
>   Now each entry was only a few lines of code - the input,
>   an error-detector and the up/down GOTO thing. Easy to
>   keep track of. GOTO made the pgm simpler and more
>   compact.

Sounds like a jump table. We still do that, but with functions rather
than jumps.

Subject: Re: Joy of this, Joy of that
From: Pancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 21 Nov 2024 23:14 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Thu, 21 Nov 2024 23:14:45 +0000
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <vhoet5$r8gq$3@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 22 Nov 2024 00:14:45 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a36b6143b3d24bc6978f336868c87ac8";
logging-data="893466"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Me0uyAgXBBRaLljc4IDGdGr3ndvZyP74="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kvqD+A0FQiJ3DnEab4+7nMCxvNs=
Content-Language: en-GB
In-Reply-To: <lq9h4kF2tegU1@mid.individual.net>
View all headers

On 11/21/24 19:48, rbowman wrote:
> On Thu, 21 Nov 2024 08:09:29 +0000, Pancho wrote:
>
>> GOTO was deprecated before BBC Basic circa 1981. I never really saw it,
>> apart from reasonable GOTO error usages. Wasn't it more a sign of lack
>> of training than a linguistic feature?
>
> I never understood the goto hate that Dijkstra had. It could be used to
> produce hideous code but has valid uses. I'm amused by the syntactic sugar
> used by many languages to conceal what is obviously a goto under the hood
> amd of you dig far enough you get down to JMP, JNE, and similar opcodes.
>

Well obviously, a do while is a branch and a jump. The idea was not to
eliminate jumps but to impose a structure upon them. So much of good
programming is imposing structure, imposing good practice rules to make
the code more understandable, more manageable.

You can use good modern programming paradigms in C: OO, pure functions,
bounds checked arrays, and automatic memory deallocation, it is just
easier with languages which give you syntactic sugar, and specific
linguistic features.

Subject: Re: Joy of this, Joy of that
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 21 Nov 2024 23:50 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Thu, 21 Nov 2024 23:50:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <vhoh0o$rq03$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhoet5$r8gq$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 00:50:48 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d0640d653b3828f8761808e02c741927";
logging-data="911363"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qZx7I7L0KLUtMqfh7UB8n"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:PcQAtxnVbQF6tErQjhSobNRrWwY=
View all headers

On Thu, 21 Nov 2024 23:14:45 +0000, Pancho wrote:

> The idea was not to
> eliminate jumps but to impose a structure upon them. So much of good
> programming is imposing structure, imposing good practice rules to make
> the code more understandable, more manageable.

Also, when you have a lot of dynamic memory allocation going on, a
structured discipline helps reduce the chances of common errors like
double-frees or memory leaks.

<https://gitlab.com/ldo/a_structured_discipline_of_programming/>

Subject: Re: Joy of this, Joy of that
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Fri, 22 Nov 2024 01:31 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!local-4.nntp.ord.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 22 Nov 2024 01:31:12 +0000
Subject: Re: Joy of this, Joy of that
Newsgroups: comp.os.linux.misc
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
<LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhoeap$r8gq$2@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Thu, 21 Nov 2024 20:31:11 -0500
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: <vhoeap$r8gq$2@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Message-ID: <0OCcnUL4TZF9Q6L6nZ2dnZfqn_WdnZ2d@earthlink.com>
Lines: 78
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-We3FBQ+BX170+7sojoosJVKfMCtw8ZIa5tWTs1lAmYul0Pzf6qOWzCXnmhfybYXbo+fLCJhfQcR/GAe!g04VVkoYACATFvmHWBnbb7zcMVYv6ZH/5H2gOhtFSJaMyBqWilzre3Qi6iTxktVvfBVsRCN75D2q!bcWI3a39FvG529J61WPI
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
View all headers

On 11/21/24 6:04 PM, Pancho wrote:
> On 11/21/24 15:45, 186282@ud0s4.net wrote:
>> On 11/21/24 3:09 AM, Pancho wrote:
>>> On 11/20/24 21:05, Rich wrote:
>>>> John Ames <commodorejohn@gmail.com> wrote:
>>>>> On Wed, 20 Nov 2024 03:37:58 -0500
>>>>> "186282@ud0s4.net" <186283@ud0s4.net> wrote:
>>>>>
>>>>>> Hmmmmmmmm ... how many now have EVER programmed in BASIC ? Should do
>>>>>> a survey .....
>>>>>
>>>>> Lord, who hasn't!? Well, probably depends on how you choose to qualify
>>>>> it - we still use VB6 in-house at $EMPLOYER, and FreeBASIC is my go-to
>>>>> for hacking together quick utility applications in daily life, but I
>>>>> haven't touched old-school line-number spaghetti-Gotoese BASIC since
>>>>> childhood, and certainly never built any application of real
>>>>> complexity
>>>>> with it. Bet more than a few people here have, though, especially
>>>>> if we
>>>>> cross-posted over to a.f.computers...
>>>>
>>>> Given the typical age of most posters here, I'd say nearly every one of
>>>> us has written /something/ in one or more of the 75 different variants
>>>> of "BASIC" that have existed over time.
>>>>
>>>
>>> For me: BBC Basic, VAX Basic, Visual Basic (&VBA).
>>>
>>> GOTO was deprecated before BBC Basic circa 1981. I never really saw
>>> it, apart from reasonable GOTO error usages. Wasn't it more a sign of
>>> lack of training than a linguistic feature?
>>
>>    I found a good way to use GOTO however - in a handheld
>>    device where you had to enter several kinds of data
>>    about a location. The structure was a sort of "ladder"
>>    and pressing buttons would take you up and down the
>>    ladder via GOTOs. If you needed to edit yer last entry
>>    you just jumped one step up. The handheld only had a
>>    4-line display alas, so you couldn't show even one
>>    entire record, only one prompt at a time.
>>
>>    Now each entry was only a few lines of code - the input,
>>    an error-detector and the up/down GOTO thing. Easy to
>>    keep track of. GOTO made the pgm simpler and more
>>    compact.
>
> Sounds like a jump table. We still do that, but with functions rather
> than jumps.

In my app - and the people I wrote it for used it for
nearly a decade and could easily add/subtract bits - it
wasn't even a "table". The 'rungs on a ladder' was an
apt description.

GOSUBs and such are great, but in this case there
was less code/mem/cycles involved using the GOTOs
and the devices did NOT have much space for program.

Anyhow, that was my neatest use of GOTO. Nothing
really WRONG with such jumps, they're being done
in the background by other forking logic anyway,
it's just that if BADLY used you get unmaintainable
spaghetti code.

Even today, Free Pascal supports GOTO ... but you
LABEL the destination point so you don't have to
worry about changing line numbers like with older
versions of BASIC. FORTRAN did, some versions still
do, support I think two version of GO TO ... labeled
and 'calculated'. Sometimes you just CAN'T cleanly
structure what you want - and GOTO is a secret way
out of some deep deep if-then's and while's and such.

In any case - part of what I was wondering was
how many young coders have ever used BASIC, at
least for more than a few lines of VBA or whatever.
It used to be THE all-around computer language,
but that became Python instead.

Subject: Re: Joy of this, Joy of that
From: Don_from_AZ
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 03:19 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: djatechNOSPAM@comcast.net.invalid (Don_from_AZ)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Thu, 21 Nov 2024 20:19:55 -0700
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <871pz4osys.fsf@comcast.net.invalid>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<vhl090$5ghq$1@dont-email.me>
<w4adnUM659THQqP6nZ2dnZfqnPednZ2d@earthlink.com>
<vhndam$ljks$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 04:19:56 +0100 (CET)
Injection-Info: dont-email.me; posting-host="9a87cd60d4bf7fa19906f10aa8419673";
logging-data="963216"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Cd9Lz1purLBFj4t91uxctrvBO1WuE2eQ="
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:L6dHbP257WdfEwBycF2lCrLgyp4=
sha1:HoOYTKwoi+Tx9pHBHMncpaazeuk=
View all headers

The Natural Philosopher <tnp@invalid.invalid> writes:

> On 21/11/2024 07:20, 186282@ud0s4.net wrote:
>> I take it you're also not a fan of Perl  🙂
>
> Perfectly Execrable Rubbish Language

I've heard it called:

"Pathologically Eclectic Rubbish Lister"

--
-Don_from_AZ-

Subject: Re: Joy of this, Joy of that
From: rbowman
Newsgroups: comp.os.linux.misc
Date: Fri, 22 Nov 2024 03:54 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: 22 Nov 2024 03:54:04 GMT
Lines: 14
Message-ID: <lqadirF6qj2U1@mid.individual.net>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
<LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhoeap$r8gq$2@dont-email.me>
<0OCcnUL4TZF9Q6L6nZ2dnZfqn_WdnZ2d@earthlink.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net XmW4rrJx7qv6PxmGn8mM4Qo2FMmZM88YlCN0vHXXeceowd9Ll6
Cancel-Lock: sha1:dqYYxNRs9j5efgmQCpd+y8OLf/s= sha256:5fwPSlfy+S0GYN/DuPkWjOkepAjcK/UFad08ipzJAyU=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
View all headers

On Thu, 21 Nov 2024 20:31:11 -0500, 186282@ud0s4.net wrote:

> Even today, Free Pascal supports GOTO ... but you LABEL the
> destination point so you don't have to worry about changing line
> numbers like with older versions of BASIC. FORTRAN did, some versions
> still do, support I think two version of GO TO ... labeled and
> 'calculated'. Sometimes you just CAN'T cleanly structure what you
> want - and GOTO is a secret way out of some deep deep if-then's and
> while's and such.

The computer goto was declared 'obsolescent' in F95 in favor of 'case' but
afaik it still will compile.

Put enough lipstick on the pig and you wind up with a vtable.

Subject: Re: Joy of this, Joy of that
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 05:51 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Fri, 22 Nov 2024 05:51:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <vhp646$12c7u$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<vhl090$5ghq$1@dont-email.me>
<w4adnUM659THQqP6nZ2dnZfqnPednZ2d@earthlink.com>
<vhndam$ljks$1@dont-email.me> <871pz4osys.fsf@comcast.net.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 06:51:03 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d0640d653b3828f8761808e02c741927";
logging-data="1126654"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/X/fTDAxOrZ8SK7Z2la0hH"
User-Agent: Pan/0.161 (Chasiv Yar; )
Cancel-Lock: sha1:Rdxhty3W6euUwebKV828Erz6YiI=
View all headers

On Thu, 21 Nov 2024 20:19:55 -0700, Don_from_AZ wrote:

> The Natural Philosopher <tnp@invalid.invalid> writes:
>
>> On 21/11/2024 07:20, 186282@ud0s4.net wrote:
>>>
>>> I take it you're also not a fan of Perl  🙂
>>
>> Perfectly Execrable Rubbish Language
>
> I've heard it called:
>
> "Pathologically Eclectic Rubbish Lister"

It changed the meaning of the term “high-level language” forever.

Subject: Re: Joy of this, Joy of that
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Fri, 22 Nov 2024 06:25 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-1.nntp.ord.giganews.com!border-3.nntp.ord.giganews.com!nntp.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 22 Nov 2024 06:25:34 +0000
Subject: Re: Joy of this, Joy of that
Newsgroups: comp.os.linux.misc
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
<LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhoeap$r8gq$2@dont-email.me>
<0OCcnUL4TZF9Q6L6nZ2dnZfqn_WdnZ2d@earthlink.com>
<lqadirF6qj2U1@mid.individual.net>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Fri, 22 Nov 2024 01:25:34 -0500
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: <lqadirF6qj2U1@mid.individual.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <o86dnUK6wspCvt36nZ2dnZfqn_SdnZ2d@earthlink.com>
Lines: 31
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-D0hdj032olaNgh87Cb44NKo2BnrTHG8MKqx7S/08lUPjV2wmwAQuiGqafdRWMGU6PGszGCCgseZ041D!YfH8csARQSOJ3xUHePYATe6xumBAEwtiv2ujHf8OuxFz0TnBihU05a2RGd9I69GIpmzs5HV6q+zW!9M+eEOmw/TXvQtW8PtqM
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
View all headers

On 11/21/24 10:54 PM, rbowman wrote:
> On Thu, 21 Nov 2024 20:31:11 -0500, 186282@ud0s4.net wrote:
>
>> Even today, Free Pascal supports GOTO ... but you LABEL the
>> destination point so you don't have to worry about changing line
>> numbers like with older versions of BASIC. FORTRAN did, some versions
>> still do, support I think two version of GO TO ... labeled and
>> 'calculated'. Sometimes you just CAN'T cleanly structure what you
>> want - and GOTO is a secret way out of some deep deep if-then's and
>> while's and such.
>
> The computer goto was declared 'obsolescent' in F95 in favor of 'case' but
> afaik it still will compile.
>
> Put enough lipstick on the pig and you wind up with a vtable.

Heh !!! :-)

Well, I don't see FORTRAN as a "pig" really - a totally
useful, still well-supported, lang. Still do little FORTRAN
utils just to stay in practice.

Anyway, sometimes you have to nest/flag deep if/then's
and whiles and such so deep that there's really no
clean escape in a special or exception condition. This
is where a 'bail-out' GOTO or two can make yer code
a LOT simpler/smaller. Not 101% aesthetic, but it works
very well. Use conservatively.

Ultimately you judge code by what it DOES - less by
to how it "looks". It's all "working the machine".

Subject: Re: Joy of this, Joy of that
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.misc
Organization: wokiesux
Date: Fri, 22 Nov 2024 06:51 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!local-4.nntp.ord.giganews.com!local-2.nntp.ord.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 22 Nov 2024 06:51:32 +0000
Subject: Re: Joy of this, Joy of that
Newsgroups: comp.os.linux.misc
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhoet5$r8gq$3@dont-email.me> <vhoh0o$rq03$1@dont-email.me>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Fri, 22 Nov 2024 01:51:32 -0500
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: <vhoh0o$rq03$1@dont-email.me>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <fpmcnRTPaqJptN36nZ2dnZfqn_idnZ2d@earthlink.com>
Lines: 30
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-WLRpJzJiBzHY5v5RpPpGAeFkYXVxGejy1bvU+ictE8ir2JU/YcZpQFRkSpx9bPNAh29P7TuEMoWIanP!+ft7tbrZGXj3LHGgIlbv3zgOTdAsZ96w+axEftk/WF1sRHFlQdt6JRv9RY1Z9pGEOJvQ4d+kFU5p!gp1Wd/5usUW2iY2gUByj
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
View all headers

On 11/21/24 6:50 PM, Lawrence D'Oliveiro wrote:
> On Thu, 21 Nov 2024 23:14:45 +0000, Pancho wrote:
>
>> The idea was not to
>> eliminate jumps but to impose a structure upon them. So much of good
>> programming is imposing structure, imposing good practice rules to make
>> the code more understandable, more manageable.
>
> Also, when you have a lot of dynamic memory allocation going on, a
> structured discipline helps reduce the chances of common errors like
> double-frees or memory leaks.
>
> <https://gitlab.com/ldo/a_structured_discipline_of_programming/>
>

Quite true. Dynamic alloc is powerful, but can also
be a powerful driver of horrible FAULTS. Gotta keep
close track !

But, if smart, less-structured CAN be made right.

Today, I'd rec "structured" for a number of reasons,
but we didn't always have that sort of luxury in
abundance.

Still don't love "object" ... gimme something closer
to K&R instead :-)

Subject: Re: Joy of this, Joy of that
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Fri, 22 Nov 2024 10:34 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Fri, 22 Nov 2024 10:34:46 +0000
Organization: A little, after lunch
Lines: 31
Message-ID: <vhpmo6$14s79$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 22 Nov 2024 11:34:47 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a8ce74636bee01dee1a5843f858dd693";
logging-data="1208553"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ygZ6WLYu9IaHD/m2kGRHEDTmQzENhL0Q="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9YfXSPnz/WI5wStNv5MKqxuZeh8=
Content-Language: en-GB
In-Reply-To: <lq9h4kF2tegU1@mid.individual.net>
View all headers

On 21/11/2024 19:48, rbowman wrote:
> On Thu, 21 Nov 2024 08:09:29 +0000, Pancho wrote:
>
>> GOTO was deprecated before BBC Basic circa 1981. I never really saw it,
>> apart from reasonable GOTO error usages. Wasn't it more a sign of lack
>> of training than a linguistic feature?
>
> I never understood the goto hate that Dijkstra had. It could be used to
> produce hideous code but has valid uses. I'm amused by the syntactic sugar
> used by many languages to conceal what is obviously a goto under the hood
> amd of you dig far enough you get down to JMP, JNE, and similar opcodes.
>
Yup.

The real hate was code that was hard to read and debug because flow
jumped about all over the place.

But you need to have conditional code execution and that means at some
level a goto, even if its implicit.

if(Bollocks)
{ // ELSE GOTO next '}'
blah();
}

--
Any fool can believe in principles - and most of them do!

Subject: Re: Joy of this, Joy of that
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Fri, 22 Nov 2024 10:35 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Fri, 22 Nov 2024 10:35:47 +0000
Organization: A little, after lunch
Lines: 58
Message-ID: <vhpmq3$14s79$2@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
<LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhoeap$r8gq$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 11:35:48 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a8ce74636bee01dee1a5843f858dd693";
logging-data="1208553"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19htgPTvXzOhAz0Chk2MH/wesDirzITPpg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:arDrFhGCLFJ5/PyL4RWuoneFImE=
Content-Language: en-GB
In-Reply-To: <vhoeap$r8gq$2@dont-email.me>
View all headers

On 21/11/2024 23:04, Pancho wrote:
> On 11/21/24 15:45, 186282@ud0s4.net wrote:
>> On 11/21/24 3:09 AM, Pancho wrote:
>>> On 11/20/24 21:05, Rich wrote:
>>>> John Ames <commodorejohn@gmail.com> wrote:
>>>>> On Wed, 20 Nov 2024 03:37:58 -0500
>>>>> "186282@ud0s4.net" <186283@ud0s4.net> wrote:
>>>>>
>>>>>> Hmmmmmmmm ... how many now have EVER programmed in BASIC ? Should do
>>>>>> a survey .....
>>>>>
>>>>> Lord, who hasn't!? Well, probably depends on how you choose to qualify
>>>>> it - we still use VB6 in-house at $EMPLOYER, and FreeBASIC is my go-to
>>>>> for hacking together quick utility applications in daily life, but I
>>>>> haven't touched old-school line-number spaghetti-Gotoese BASIC since
>>>>> childhood, and certainly never built any application of real
>>>>> complexity
>>>>> with it. Bet more than a few people here have, though, especially
>>>>> if we
>>>>> cross-posted over to a.f.computers...
>>>>
>>>> Given the typical age of most posters here, I'd say nearly every one of
>>>> us has written /something/ in one or more of the 75 different variants
>>>> of "BASIC" that have existed over time.
>>>>
>>>
>>> For me: BBC Basic, VAX Basic, Visual Basic (&VBA).
>>>
>>> GOTO was deprecated before BBC Basic circa 1981. I never really saw
>>> it, apart from reasonable GOTO error usages. Wasn't it more a sign of
>>> lack of training than a linguistic feature?
>>
>>    I found a good way to use GOTO however - in a handheld
>>    device where you had to enter several kinds of data
>>    about a location. The structure was a sort of "ladder"
>>    and pressing buttons would take you up and down the
>>    ladder via GOTOs. If you needed to edit yer last entry
>>    you just jumped one step up. The handheld only had a
>>    4-line display alas, so you couldn't show even one
>>    entire record, only one prompt at a time.
>>
>>    Now each entry was only a few lines of code - the input,
>>    an error-detector and the up/down GOTO thing. Easy to
>>    keep track of. GOTO made the pgm simpler and more
>>    compact.
>
> Sounds like a jump table. We still do that, but with functions rather
> than jumps.
>
Case statements...

--
For in reason, all government without the consent of the governed is the
very definition of slavery.

Jonathan Swift

Subject: Re: Joy of this, Joy of that
From: Richard Kettlewell
Newsgroups: comp.os.linux.misc
Organization: terraraq NNTP server
Date: Fri, 22 Nov 2024 10:45 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Fri, 22 Nov 2024 10:45:58 +0000
Organization: terraraq NNTP server
Message-ID: <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhpmo6$14s79$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="95896"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:03n7rhpCdnaRR8DgARb3CzxirBs=
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
View all headers

The Natural Philosopher <tnp@invalid.invalid> writes:
> On 21/11/2024 19:48, rbowman wrote:
>> I never understood the goto hate that Dijkstra had. It could be used
>> to produce hideous code but has valid uses. I'm amused by the
>> syntactic sugar used by many languages to conceal what is obviously a
>> goto under the hood amd of you dig far enough you get down to JMP,
>> JNE, and similar opcodes.
>
> Yup.
>
> The real hate was code that was hard to read and debug because flow
> jumped about all over the place.
>
> But you need to have conditional code execution and that means at some
> level a goto, even if its implicit.
>
> if(Bollocks)
> { // ELSE GOTO next '}'
> blah();
> }

Dijkstra’s complaints were about the difficulty of understanding code
made of a spaghetti heap of explicit gotos. He was quite happy with
if/while/etc - his complaint is certainly not about conditional
execution etc.

He didn’t model the higher-level constructions in terms of implicit
gotos but that’s not really relevant to general discussion.

The one place I’ll use a goto (in C) is to branch to unified cleanup
code in an error case, usually using a macro both to emphasize what’s
going on and to stop the error-handling guff from dominating what the
reader sees.

For selective, conditional and repeated execution there are generally
cleaner ways to write it, and use of gotos for these purposes is
generally a hint that the code needs some work. More recent languages
have other options (‘defer’, ‘finally’, destructors, etc).

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

Subject: Re: Joy of this, Joy of that
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Fri, 22 Nov 2024 12:30 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Fri, 22 Nov 2024 12:30:07 +0000
Organization: A little, after lunch
Lines: 26
Message-ID: <vhptgf$1614q$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 13:30:08 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a8ce74636bee01dee1a5843f858dd693";
logging-data="1246362"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hBN0H6zd7xJBUdAFvqfTzZTqwLZxa1ZY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:twvpoDbjhJBPc4vUBHUFUvJT+M0=
Content-Language: en-GB
In-Reply-To: <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
View all headers

On 22/11/2024 10:45, Richard Kettlewell wrote:
> The one place I’ll use a goto (in C) is to branch to unified cleanup
> code in an error case, usually using a macro both to emphasize what’s
> going on and to stop the error-handling guff from dominating what the
> reader sees.
>
+1
GOTO snafu_nuclear_option... :-)

> For selective, conditional and repeated execution there are generally
> cleaner ways to write it, and use of gotos for these purposes is
> generally a hint that the code needs some work. More recent languages
> have other options (‘defer’, ‘finally’, destructors, etc).
>
+2
> --

--
Socialism is the philosophy of failure, the creed of ignorance and the
gospel of envy.

Its inherent virtue is the equal sharing of misery.

Winston Churchill

Subject: Re: Joy of this, Joy of that
From: Pancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 22 Nov 2024 13:37 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Fri, 22 Nov 2024 13:37:43 +0000
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <vhq1f7$16bou$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
<LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhoeap$r8gq$2@dont-email.me> <vhpmq3$14s79$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 14:37:44 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a36b6143b3d24bc6978f336868c87ac8";
logging-data="1257246"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XvCYbsuHszObDjUS3DwSRxhgDD6JLP5M="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:IidD76mS/3PiLq0zdYCo0NY+2xY=
Content-Language: en-GB
In-Reply-To: <vhpmq3$14s79$2@dont-email.me>
View all headers

On 11/22/24 10:35, The Natural Philosopher wrote:
> On 21/11/2024 23:04, Pancho wrote:
>> On 11/21/24 15:45, 186282@ud0s4.net wrote:
>>> On 11/21/24 3:09 AM, Pancho wrote:
>>>> On 11/20/24 21:05, Rich wrote:
>>>>> John Ames <commodorejohn@gmail.com> wrote:
>>>>>> On Wed, 20 Nov 2024 03:37:58 -0500
>>>>>> "186282@ud0s4.net" <186283@ud0s4.net> wrote:
>>>>>>
>>>>>>> Hmmmmmmmm ... how many now have EVER programmed in BASIC ? Should do
>>>>>>> a survey .....
>>>>>>
>>>>>> Lord, who hasn't!? Well, probably depends on how you choose to
>>>>>> qualify
>>>>>> it - we still use VB6 in-house at $EMPLOYER, and FreeBASIC is my
>>>>>> go-to
>>>>>> for hacking together quick utility applications in daily life, but I
>>>>>> haven't touched old-school line-number spaghetti-Gotoese BASIC since
>>>>>> childhood, and certainly never built any application of real
>>>>>> complexity
>>>>>> with it. Bet more than a few people here have, though, especially
>>>>>> if we
>>>>>> cross-posted over to a.f.computers...
>>>>>
>>>>> Given the typical age of most posters here, I'd say nearly every
>>>>> one of
>>>>> us has written /something/ in one or more of the 75 different variants
>>>>> of "BASIC" that have existed over time.
>>>>>
>>>>
>>>> For me: BBC Basic, VAX Basic, Visual Basic (&VBA).
>>>>
>>>> GOTO was deprecated before BBC Basic circa 1981. I never really saw
>>>> it, apart from reasonable GOTO error usages. Wasn't it more a sign
>>>> of lack of training than a linguistic feature?
>>>
>>>    I found a good way to use GOTO however - in a handheld
>>>    device where you had to enter several kinds of data
>>>    about a location. The structure was a sort of "ladder"
>>>    and pressing buttons would take you up and down the
>>>    ladder via GOTOs. If you needed to edit yer last entry
>>>    you just jumped one step up. The handheld only had a
>>>    4-line display alas, so you couldn't show even one
>>>    entire record, only one prompt at a time.
>>>
>>>    Now each entry was only a few lines of code - the input,
>>>    an error-detector and the up/down GOTO thing. Easy to
>>>    keep track of. GOTO made the pgm simpler and more
>>>    compact.
>>
>> Sounds like a jump table. We still do that, but with functions rather
>> than jumps.
>>
> Case statements...
>
In OO, switch/case statements were deprecated too :-) I can't remember
exactly why. I think it was because we were supposed to use polymorphism
instead.

In practical project terms, giant switch statements were a pain in the
bum, because everyone would constantly be modifying that bit of code and
you would get source code merge conflicts.

It's coming back to me, VAX BASIC programs would be designed to consist
of a massive "do processing" loop, which would consist of a big switch
statement containing a case for every type of report or behaviour the
program was supposed to handle. Every time a new report was added, the
switch had a case added.

Then it reminds me of the Gang of Four visitor pattern, every time I saw
it, it took me a whole morning's thinking energy to understand that it
was just a simple switch :-).

Coding is always a balance between flexibility and clarity, there is no
"right" answer. You can make code more flexible by adding another layer
of indirection, but it becomes harder to understand.

Subject: Re: Joy of this, Joy of that
From: Charlie Gibbs
Newsgroups: comp.os.linux.misc
Date: Fri, 22 Nov 2024 18:53 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!nntp.comgw.net!2.eu.feeder.erje.net!feeder.erje.net!feeder2.feed.ams11.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx13.iad.POSTED!not-for-mail
Newsgroups: comp.os.linux.misc
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: Joy of this, Joy of that
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
<vhptgf$1614q$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: 27
Message-ID: <Iq40P.70904$EQue.62359@fx13.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Fri, 22 Nov 2024 18:53:28 UTC
Date: Fri, 22 Nov 2024 18:53:28 GMT
X-Received-Bytes: 2136
View all headers

On 2024-11-22, The Natural Philosopher <tnp@invalid.invalid> wrote:

> On 22/11/2024 10:45, Richard Kettlewell wrote:
>
>> The one place I’ll use a goto (in C) is to branch to unified cleanup
>> code in an error case, usually using a macro both to emphasize what’s
>> going on and to stop the error-handling guff from dominating what the
>> reader sees.
>
> +1
> GOTO snafu_nuclear_option... :-)

All my programs contain a routine called quit_cleanup(); it takes
a single argument, which is either an error message or NULL.
It frees all allocated memory, closes any open files, etc.
(all such variables are global and I initialize them to NULL
or whatever other value is appropriate). Then, if the error
message argument is not NULL, it displays and/or logs the
message and calls exit() with a non-zero argument. If the
error message argument is NULL, it simply calls exit(0).
I can call it from anywhere, and it guarantees an orderly shutdown.

--
/~\ Charlie Gibbs | Growth for the sake of
\ / <cgibbs@kltpzyxm.invalid> | growth is the ideology
X I'm really at ac.dekanfrus | of the cancer cell.
/ \ if you read it the right way. | -- Edward Abbey

Subject: Re: Joy of this, Joy of that
From: Charlie Gibbs
Newsgroups: comp.os.linux.misc
Date: Fri, 22 Nov 2024 18:53 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news-out.netnews.com!s1-1.netnews.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx13.iad.POSTED!not-for-mail
Newsgroups: comp.os.linux.misc
From: cgibbs@kltpzyxm.invalid (Charlie Gibbs)
Subject: Re: Joy of this, Joy of that
References: <vhigot$1uakf$1@dont-email.me> <6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com> <20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me> <vhmprp$iaf1$1@dont-email.me> <LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com> <vhoeap$r8gq$2@dont-email.me> <0OCcnUL4TZF9Q6L6nZ2dnZfqn_WdnZ2d@earthlink.com>
User-Agent: slrn/1.0.3 (Linux)
Lines: 18
Message-ID: <Jq40P.70905$EQue.45224@fx13.iad>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Fri, 22 Nov 2024 18:53:29 UTC
Date: Fri, 22 Nov 2024 18:53:29 GMT
X-Received-Bytes: 1524
View all headers

On 2024-11-22, 186282@ud0s4.net <186283@ud0s4.net> wrote:

> Anyhow, that was my neatest use of GOTO. Nothing
> really WRONG with such jumps, they're being done
> in the background by other forking logic anyway,
> it's just that if BADLY used you get unmaintainable
> spaghetti code.

The undisciplined use of subroutine calls can be as bad as
the undisciplined use of GOTOs. It's still spaghetti code,
only now the strands are doubled. After all, what is a
subroutine call other than a GOTO paired with a "come from"?

--
/~\ Charlie Gibbs | Growth for the sake of
\ / <cgibbs@kltpzyxm.invalid> | growth is the ideology
X I'm really at ac.dekanfrus | of the cancer cell.
/ \ if you read it the right way. | -- Edward Abbey

Subject: Re: Joy of this, Joy of that
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Fri, 22 Nov 2024 19:30 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Fri, 22 Nov 2024 19:30:24 +0000
Organization: A little, after lunch
Lines: 98
Message-ID: <vhqm4g$1aarf$1@dont-email.me>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me>
<LASdnSkA69I3yKL6nZ2dnZfqnPWdnZ2d@earthlink.com>
<vhoeap$r8gq$2@dont-email.me> <vhpmq3$14s79$2@dont-email.me>
<vhq1f7$16bou$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 20:30:25 +0100 (CET)
Injection-Info: dont-email.me; posting-host="a8ce74636bee01dee1a5843f858dd693";
logging-data="1387375"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ihkqSnadDwG06AaLQ/ji8GODyAWIrwJI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Gb0PRPrvE5jmAqPnCAcDG5NHeeE=
In-Reply-To: <vhq1f7$16bou$1@dont-email.me>
Content-Language: en-GB
View all headers

On 22/11/2024 13:37, Pancho wrote:
> On 11/22/24 10:35, The Natural Philosopher wrote:
>> On 21/11/2024 23:04, Pancho wrote:
>>> On 11/21/24 15:45, 186282@ud0s4.net wrote:
>>>> On 11/21/24 3:09 AM, Pancho wrote:
>>>>> On 11/20/24 21:05, Rich wrote:
>>>>>> John Ames <commodorejohn@gmail.com> wrote:
>>>>>>> On Wed, 20 Nov 2024 03:37:58 -0500
>>>>>>> "186282@ud0s4.net" <186283@ud0s4.net> wrote:
>>>>>>>
>>>>>>>> Hmmmmmmmm ... how many now have EVER programmed in BASIC ?
>>>>>>>> Should do
>>>>>>>> a survey .....
>>>>>>>
>>>>>>> Lord, who hasn't!? Well, probably depends on how you choose to
>>>>>>> qualify
>>>>>>> it - we still use VB6 in-house at $EMPLOYER, and FreeBASIC is my
>>>>>>> go-to
>>>>>>> for hacking together quick utility applications in daily life, but I
>>>>>>> haven't touched old-school line-number spaghetti-Gotoese BASIC since
>>>>>>> childhood, and certainly never built any application of real
>>>>>>> complexity
>>>>>>> with it. Bet more than a few people here have, though, especially
>>>>>>> if we
>>>>>>> cross-posted over to a.f.computers...
>>>>>>
>>>>>> Given the typical age of most posters here, I'd say nearly every
>>>>>> one of
>>>>>> us has written /something/ in one or more of the 75 different
>>>>>> variants
>>>>>> of "BASIC" that have existed over time.
>>>>>>
>>>>>
>>>>> For me: BBC Basic, VAX Basic, Visual Basic (&VBA).
>>>>>
>>>>> GOTO was deprecated before BBC Basic circa 1981. I never really saw
>>>>> it, apart from reasonable GOTO error usages. Wasn't it more a sign
>>>>> of lack of training than a linguistic feature?
>>>>
>>>>    I found a good way to use GOTO however - in a handheld
>>>>    device where you had to enter several kinds of data
>>>>    about a location. The structure was a sort of "ladder"
>>>>    and pressing buttons would take you up and down the
>>>>    ladder via GOTOs. If you needed to edit yer last entry
>>>>    you just jumped one step up. The handheld only had a
>>>>    4-line display alas, so you couldn't show even one
>>>>    entire record, only one prompt at a time.
>>>>
>>>>    Now each entry was only a few lines of code - the input,
>>>>    an error-detector and the up/down GOTO thing. Easy to
>>>>    keep track of. GOTO made the pgm simpler and more
>>>>    compact.
>>>
>>> Sounds like a jump table. We still do that, but with functions rather
>>> than jumps.
>>>
>> Case statements...
>>
> In OO, switch/case statements were deprecated too :-) I can't remember
> exactly why. I think it was because we were supposed to use polymorphism
> instead.
>
> In practical project terms, giant switch statements were a pain in the
> bum, because everyone would constantly be modifying that bit of code and
> you would get source code merge conflicts.
>
> It's coming back to me, VAX BASIC programs would be designed to consist
> of a massive "do processing" loop, which would consist of a big switch
> statement containing a case for every type of report or behaviour the
> program was supposed to handle. Every time a new report was added, the
> switch had a case added.
>
> Then it reminds me of the Gang of Four visitor pattern, every time I saw
> it, it took me a whole morning's thinking energy to understand that it
> was just a simple switch :-).
>
> Coding is always a balance between flexibility and clarity, there is no
> "right" answer. You can make code more flexible by adding another layer
> of indirection, but it becomes harder to understand.
>
>
I echo that. The 'nogoto' was really a fool's rule. The wise man's
guidance was 'make it clear what you are doing because you or someone
else - may need to understand it in a years time'
I dpnt find OO in general makes code easier to understand.

>
>
>

--
Of what good are dead warriors? … Warriors are those who desire battle
more than peace. Those who seek battle despite peace. Those who thump
their spears on the ground and talk of honor. Those who leap high the
battle dance and dream of glory … The good of dead warriors, Mother, is
that they are dead.
Sheri S Tepper: The Awakeners.

Subject: Re: Joy of this, Joy of that
From: candycanearter07
Newsgroups: comp.os.linux.misc
Organization: the-candyden-of-code
Date: Fri, 22 Nov 2024 20:30 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Fri, 22 Nov 2024 20:30:04 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 35
Message-ID: <slrnvk1qcg.5gg9.candycanearter07@candydeb.host.invalid>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<slrnvjss5f.3qanq.candycanearter07@candydeb.host.invalid>
<vhm72h$c3uv$1@dont-email.me>
Injection-Date: Fri, 22 Nov 2024 21:30:05 +0100 (CET)
Injection-Info: dont-email.me; posting-host="738d5fd232904bb7b5d47ff6a07ccbc7";
logging-data="1411106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+llZCQJ8LCQgCr6ITeZv4LROWXlJHqtXfYJ65gnJdQgg=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:sqEKGoy5vmXMpcR9vkRM9fB4Nl0=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Rich <rich@example.invalid> wrote at 02:48 this Thursday (GMT):
> candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> wrote:
>> Rich <rich@example.invalid> wrote at 21:05 this Wednesday (GMT):
>>> John Ames <commodorejohn@gmail.com> wrote:
>>>> On Wed, 20 Nov 2024 03:37:58 -0500
>>>> "186282@ud0s4.net" <186283@ud0s4.net> wrote:
>>>>
>>>>> Hmmmmmmmm ... how many now have EVER programmed in BASIC ?
>>>>> Should do a survey .....
>>>>
>>>> Lord, who hasn't!? Well, probably depends on how you choose to
>>>> qualify it - we still use VB6 in-house at $EMPLOYER, and FreeBASIC
>>>> is my go-to for hacking together quick utility applications in
>>>> daily life, but I haven't touched old-school line-number
>>>> spaghetti-Gotoese BASIC since childhood, and certainly never built
>>>> any application of real complexity with it. Bet more than a few
>>>> people here have, though, especially if we cross-posted over to
>>>> a.f.computers...
>>>
>>> Given the typical age of most posters here, I'd say nearly every one
>>> of us has written /something/ in one or more of the 75 different
>>> variants of "BASIC" that have existed over time.
>>
>> I haven't
>
> Which would make you a member of the remainder of "nearly every" (which
> does not encompass "all").
>
> It would also imply that you /may/ be one of the younger members posting
> in the group.

Yeah, probably one of the youngest.
--
user <candycane> is generated from /dev/urandom

Subject: Re: Joy of this, Joy of that
From: candycanearter07
Newsgroups: comp.os.linux.misc
Organization: the-candyden-of-code
Date: Fri, 22 Nov 2024 20:40 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: candycanearter07@candycanearter07.nomail.afraid (candycanearter07)
Newsgroups: comp.os.linux.misc
Subject: Re: Joy of this, Joy of that
Date: Fri, 22 Nov 2024 20:40:03 -0000 (UTC)
Organization: the-candyden-of-code
Lines: 29
Message-ID: <slrnvk1qft.5gg9.candycanearter07@candydeb.host.invalid>
References: <vhigot$1uakf$1@dont-email.me>
<6iKdnTQOKNh6AqD6nZ2dnZfqn_idnZ2d@earthlink.com>
<20241120081039.00006d2a@gmail.com> <vhlium$93kn$1@dont-email.me>
<vhmprp$iaf1$1@dont-email.me> <lq9h4kF2tegU1@mid.individual.net>
<vhpmo6$14s79$1@dont-email.me> <wwva5drk0m1.fsf@LkoBDZeT.terraraq.uk>
<vhptgf$1614q$1@dont-email.me> <Iq40P.70904$EQue.62359@fx13.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Nov 2024 21:40:04 +0100 (CET)
Injection-Info: dont-email.me; posting-host="738d5fd232904bb7b5d47ff6a07ccbc7";
logging-data="1414396"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FueU7VWga6R2z5/9nFsjEBG6tqiYV3T8/F9JcXzotiw=="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:4yXxZhpTOk3F7T8XFYrGpgWFqx0=
X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]%
b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx
`~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e
ZrQsWJ >|l^I_[pbsIqwoz.WGA]<D
View all headers

Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote at 18:53 this Friday (GMT):
> On 2024-11-22, The Natural Philosopher <tnp@invalid.invalid> wrote:
>
>> On 22/11/2024 10:45, Richard Kettlewell wrote:
>>
>>> The one place I’ll use a goto (in C) is to branch to unified cleanup
>>> code in an error case, usually using a macro both to emphasize what’s
>>> going on and to stop the error-handling guff from dominating what the
>>> reader sees.
>>
>> +1
>> GOTO snafu_nuclear_option... :-)
>
> All my programs contain a routine called quit_cleanup(); it takes
> a single argument, which is either an error message or NULL.
> It frees all allocated memory, closes any open files, etc.
> (all such variables are global and I initialize them to NULL
> or whatever other value is appropriate). Then, if the error
> message argument is not NULL, it displays and/or logs the
> message and calls exit() with a non-zero argument. If the
> error message argument is NULL, it simply calls exit(0).
> I can call it from anywhere, and it guarantees an orderly shutdown.

Unless you specifically use your own allocation wrapper that adds it to
an internal list, how do you deallocate "all" the allocations you've
done?
--
user <candycane> is generated from /dev/urandom

Pages:12345678910111213141516171819202122232425262728293031323334

rocksolid light 0.9.8
clearnet tor