🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #1163

Re: The end of software secrecy is almost upon us"

#1163
From: Lars Poulsen
Date: Sat, 05 Dec 2026 14:14
40 lines
3686 bytes
On 12/5/2026 06:05, Lars Poulsen wrote:
> On 12/5/2026 00:44, Jerry Brown wrote:
>> Back in the nineties our head of department came up with a raft of
>> ridiculous "stardards" chief of which was that no function should be
>> longer than one page. The main language then was 370 PL/I, so this
>> worked out *really* well for SELECT statements with many WHEN checks,
>> particularly bearing in mind that a logical line of code might occupy
>> several physical lines due to the < 80-column working area.
> Coding standards are not a bad thing, per se. Some "uniformity of "house 
> style" is good for readability, but when it is enforced with iron 
> discipline, it is bad for collegial relationships, and also in specific 
> cases can be *less* readable. For example, with brace placement:
> I generally prefer "K&R style" for short blocks:
>          if (count < size) {
>              add_an item(...);
>          } else {
>          process_overflow(...);
>          }
> But if the block is more than a couple of lines, I prefer braces to the 
> left, so that I can draw lines on a printout between them:
>          if (status == HEALTHY)
>          {
>              // process the normal case
>              ...
>          } else
>          {
>              // we are preparing to clean up
>              ...
>          }
> And as you can see, I like the C++ style of comments, so I don't have to 
> watch the right-hand side when I am skipping to the next line of actual 
> code.

OOPS ... I had the K&R style name backwards. I should have checked 
BEFORE I hit SEND.

https://en.wikipedia.org/wiki/Indentation_style

-- 
Lars Poulsen - an old geek in Santa Barbara, California
Technical Details
Message-ID: <11f167d$2thqh$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!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> <ywNBS.209326$koK3.131985@fx01.ams4> <11evf8m$24ad3$2@dont-email.me> <QeIQS.418076$Lt64.136565@fx41.iad> <6ui7hl92mao0iiqhbmfk2r92t4u54dkck4@jwbrown.co.uk> <11f15n1$2tagh$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Lars Poulsen <lars@beagle-ears.com>
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 us"
Date: Sat, 5 Dec 2026 06:14:05 -0800
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <11f167d$2thqh$1@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>
 <ywNBS.209326$koK3.131985@fx01.ams4> <11evf8m$24ad3$2@dont-email.me>
 <QeIQS.418076$Lt64.136565@fx41.iad>
 <6ui7hl92mao0iiqhbmfk2r92t4u54dkck4@jwbrown.co.uk>
 <11f15n1$2tagh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 05 Dec 2026 14:14:06 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3065681"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/lL124ouJGDJ9DRFXd5H/oAUUipImyFEc="; posting-host="cbcbb15cf6d3b553f719c3deb5224f3b"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4UmtSEKrJzfAEBkFT+y5jIWsdus= sha256:DSlJRX6lgpTvpWFkAN4UmbChCQkI529oXfRvBG4kY0E=
	sha1:WlMzV1mfIbDc96jdxvfpicR1dxc= sha256:o/RWN9kNxPCCrVRUtXDsCUu26jJXAKWJ42PpCK8L1O0=
In-Reply-To: <11f15n1$2tagh$1@dont-email.me>
Content-Language: en-US