Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vpsdhm$3maj1$1@dont-email.me>
Deutsch   English   Français   Italiano  
<vpsdhm$3maj1$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c
Subject: Re: Which code style do you prefer the most?
Date: Fri, 28 Feb 2025 14:26:13 +0100
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <vpsdhm$3maj1$1@dont-email.me>
References: <vpkmq0$21php$1@dont-email.me> <vpl62m$250af$1@dont-email.me>
 <87frk10w51.fsf@onesoftnet.eu.org> <vpn8vs$2jmv1$1@dont-email.me>
 <vpn92i$86q$1@reader1.panix.com> <vpodnf$2q6ak$4@dont-email.me>
 <vpovd0$30d00$1@dont-email.me> <vpp011$30evb$1@dont-email.me>
 <vpp8ag$31ooi$1@dont-email.me> <vppaeq$323aa$1@dont-email.me>
 <vprpss$3ipmu$1@dont-email.me> <vprtlj$3jdn5$1@dont-email.me>
 <vprv75$3jmqu$1@dont-email.me> <vps2k5$3k722$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 28 Feb 2025 14:26:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="bff3f8510287c0630e92bdcf8ff4873c";
	logging-data="3877473"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18kng3hTXBLGHwyWLhIfEXZ"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:DMHywnTErgDjSTwdTMJrDx7eloU=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <vps2k5$3k722$1@dont-email.me>

On 28.02.2025 11:19, Richard Heathfield wrote:
> On 28/02/2025 09:21, Janis Papanagnou wrote:
>> On 28.02.2025 09:55, Richard Heathfield wrote:
> <snip>
>>
>>> On the other hand, I maxed out at 24.
>>
>> It would be interesting to get to know what sort of code-lines
>> or what sort of code-structure these extreme values stem from.
> 
> I thought so too, so I looked, and of course it's not as interesting as
> we might have hoped.
> 
> I'm not allowed to post the code here, but I can paraphrase:
> 
>   value = really_quite_extremely_long_function_name(arg1,
>                                                     arg2,
>                                                     arg3,
>                                                     arg4);

Actually, this sort of structure was exactly what I thought of
when you spoke about such huge indent values.


I don't have such extreme formatting, but structural similar
variants; elsewhere I had posted this fragment

        if (sscanf (mutations, "r:%u,g:%u,a:%u,d:%u",
                    &mutation_rates.base,
                    &mutation_rates.genesis,
                    &mutation_rates.aging,
                    &mutation_rates.death
                   ) != 4)

but I have the habit to not use Tabs for the excess indenting;
informally written it looks like

<Tab><Tab>if (sscanf (mutations, "r:%u,g:%u,a:%u,d:%u",
<Tab><Tab>  <spaces>  &mutation_rates.base,
<Tab><Tab>  <spaces>  &mutation_rates.genesis,
<Tab><Tab>  <spaces>  &mutation_rates.aging,
<Tab><Tab>  <spaces>  &mutation_rates.death
<Tab><Tab>  <spaces> ) != 4)

so that the code structure and alignment stays the same when
changing indent tabs (from 4) to values of, say, 8 or 2.

The side-effect is that the space-alignment gets not counted
as [arbitrary long] indents when counting the leading <Tabs>.

Janis