:: Re: [DNG] C source style [was vdev …
Top Page
Delete this message
Reply to this message
Author: Alessandro Vesely
Date:  
To: dng
Subject: Re: [DNG] C source style [was vdev status update in daedalus]
On Thu 31/Jul/2025 10:52:31 +0200 Didier Kryn wrote:
>> On 30/07/2025 14:02, aitor wrote:
>>> [...]
>>>
>>> Linus Torvalds was less polite (the document seems to be written in 2016):
>>>
>>> "First off, I'd suggest printing out a copy of the GNU coding standards, and
>>> NOT read it. Burn them, it's a great symbolic gesture."
> [...]
>
> Torwalds is well known to be very aggressive against the opinions differing
> from his own (~:



Environmental considerations aside, I agree that a coding style that requires a
variable number of spaces for indentation in different cases —thus requiring a
programmable editor— is overkill. I prefer to use tabs for indentation, but
only at the beginning of a line. I set the editor to 4 spaces, but tab
indentation remains consistent with any other setting. While writing, you
simply press one key on a new scope, without the editor having to guess what
you're about to do.

And I agree with the vertical alignment of the opening and closing braces, but
this seems like a religious issue.


Best
Ale
--