Deutsch   English   Français   Italiano  
<vpldqe$26mev$1@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!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: Tue, 25 Feb 2025 22:47:57 +0100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <vpldqe$26mev$1@dont-email.me>
References: <vpkmq0$21php$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 25 Feb 2025 22:47:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="d49f883feaf566fa61db3752b5c99fde";
	logging-data="2316767"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18x66gmjnN8a/XweJxn0xy0"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:kLiq/3+s1pV9nbtw3QVuYh6JX3g=
In-Reply-To: <vpkmq0$21php$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
Bytes: 2016

On 25.02.2025 16:15, Ar Rakin wrote:
> Hello there,
> 
> I've been writing C code for a long time, in different styles, but
> always wanted to know which code style most people prefer. This is all
> about that question. Which one of the following do you prefer the most?
> 
> 1. GNU Style
> [...]
> 
> 2. Linux Style
> [...]
> 
> 3. Other Styles?
> [...]
> Please show an example!

In professional contexts there's often coding guidelines that define
the coding style standards & recommendations for companies or projects.

I've got the impression that every individual has its own preference,
generally. So  N individuals => N+1 existing "preferred styles"  :-)

I suggest to inspect some publicly available coding standards to see
the many possible custom definitions; that will give you an impression
how many style variants you can expect.

(Mine doesn't matter; but it's not identical to 1. or 2. above.)

Janis