๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.arts.sf.written
Article #367

Re: โ€œThe end of software secrecy is almost upon

#367
From: Nuno Silva
Date: Wed, 21 Oct 2026 00:15
50 lines
3470 bytes
On 2026-10-20, Charlie Gibbs wrote:

> On 2026-10-20, boltar@battlestar.co.uk <boltar@battlestar.co.uk> wrote:
>
>> On Tue, 20 Oct 2026 13:20:40 -0400
>>
>> Cryptoengineer <petertrei@gmail.com> wrote:
>>
>>> On 10/20/2026 1:46 AM, Titus G wrote:
>>>
>>>> I thought that what was called Structured Programming became an
>>>> inviolable law when invented by whom I do not know but suspect that
>>>> bugger for the bottle or even earlier.
>>>
>>> ITYM:
>>>
>>> Edgar Dijkstra: Go To Statement Considered Harmful
>>
>> A man who clearly never programmed in assembler.
>
> Of course.  He was a CS weenie - any mention of low-level
> programming makes those types turn purple.
>
> Although Structured Programming introduced some good concepts,
> it also built a following of fanatics more bent on crucifying
> infidels than writing good practical programs.  Some people
> came to see the number of function calls a program made as
> a figure of merit, resulting in dozens of tiny functions that
> caused control to jump all over the place (which made virtual
> memory systems thrash).  And the end result wasn't that much
> more readable.
>
> The undisciplined use of GOTOs is bad, agreed.  But the
> undisciplined use of function calls isn't a whole lot better.
> After all, a function call is just a GOTO paired with a
> "come from", so in the end it's all still spaghetti code -
> it's just that the "structured" code runs double strands.

The "come from" IIRC is the key part here. If you use a function (and
don't goto into its body, as that would undo the benefit here), you can
analyze the function as a block with clearly defined flows and
separately from the rest of the program.

The criticism isn't about not putting everything into its own function,
it's about how using functions and other flow control structures instead
of e.g. gotos makes it easier to study and reason about these parts of
the code.

-- 
Nuno Silva
Technical Details
Message-ID: <11b9079$3fe2f$5@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11amvre$15far$1@dont-email.me> <11b5tdb$2cs5l$1@dont-email.me> <11b64cp$end$1@panix2.panix.com> <11b64hj$2faos$1@dont-email.me> <11b679m$6dl$1@panix2.panix.com> <11b6u68$2neta$1@dont-email.me> <11b6v90$2nine$3@dont-email.me> <11b87t8$379mv$1@dont-email.me> <11b8b2k$p44i$1@dont-email.me> <rXOBS.7015$5Iy.3911@fx04.iad>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Nuno Silva <nunojsilva@invalid.invalid>
Newsgroups: rec.arts.sf.written,comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers
Subject: Re: โ€œThe end of software secrecy is almost upon
Date: Wed, 21 Oct 2026 01:15:25 +0100
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <11b9079$3fe2f$5@dont-email.me>
References: <11amvre$15far$1@dont-email.me> <11b5tdb$2cs5l$1@dont-email.me>
	<11b64cp$end$1@panix2.panix.com> <11b64hj$2faos$1@dont-email.me>
	<11b679m$6dl$1@panix2.panix.com> <11b6u68$2neta$1@dont-email.me>
	<11b6v90$2nine$3@dont-email.me> <11b87t8$379mv$1@dont-email.me>
	<11b8b2k$p44i$1@dont-email.me> <rXOBS.7015$5Iy.3911@fx04.iad>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 21 Oct 2026 00:15:38 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3651663"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+bhi1+U1kaRDksZtqRTmQ9"; posting-host="ab8225503cdf97c5e310b305e5ad7c40"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock: sha1:QLlo5oyFwAG0O4JHgBpfjz501Hc= sha256:RZyr34qpB7G+Orv1ItTfn1yvbV4FGK8zL3acCb3Udv4=
	sha1:qzjYgluujZcjBgfwEOnxIG4ek7c= sha256:h8KNCjQ/KYkSxDiQ9hJT674zKSuHVlsAZgxH1KamAjU=