[Fwd: Re: [Y-devel] Technical Notes]

JP Dinger jpd at dsb.tudelft.nl
Fri Feb 20 15:11:02 GMT 2004


On Thu, Feb 19, 2004 at 10:58:50PM +0000, Matt Wilson wrote:
> On Thu, 2004-02-19 at 22:04, Nitin S Kumar wrote:
> > You should probably use the Linux kernel coding style
> > guidelines as a start
> > (linux/Documentation/CodingStyle).

The gnu coding style is one of the sickest I've ever seen. I don't know
how much it differs from the linux guidelines though. (Nor do I care.)


> I'd definitely have to disagree with that for a few reasons;
> 
> * 8 character tabs (rather than 2 or 4, 2 being my personal pref.)
> * tabs (rather than spaces)

I'd like to chip in here and note that assuming and/or trying to enforce
that the actual ascii-#9 HT (`horizontal tab') character be anything but
a tabulation to the nearest greater tab position at 8-character intervals
will break at lots of places and will do more harm than good.

That said, whatever width you use for indenting, and thus how many columns
your <tab>-key moves is a different matter completely, and a matter of
personal preference and proper configuration of your favourite editor.
I know mine but I don't think it important enough to start a holy war on
this. 8 is the easiest, my own code has 2, reseach indicated 4 might be
the most readable. Pick one, and stick with it.

As long as the HT-issue above is honoured, _I_, for one, will not complain.


> * braces positioning

1tis, of course. <runs/>

Seriously, I think Mark Thomas gets to say what we pick and we stick with
it.


[snip]
> Though I'm sure I'll receive some flame material for saying that :P

Of course, your personal preference is opposite of mine, and if I'm taking
part in a holy war I cannot but assert I am right and nobody else is.


-- 
  j p d (at) d s b (dot) t u d e l f t (dot) n l .



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved