Sujet : Re: Which code style do you prefer the most?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 25. Feb 2025, 22:47:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vpldqe$26mev$1@dont-email.me>
References : 1
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
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