Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2002 11:34:50 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, Luigi Rizzo <luigi@FreeBSD.org>, FreeBSD Chat <chat@FreeBSD.ORG>
Subject:   Re: cvs commit: src/sys/netinet ip_fw.c
Message-ID:  <20020513113450.C8222@wantadilla.lemis.com>
In-Reply-To: <20020513012619.GA1967@athlon.pn.xcllnt.net>
References:  <200205122043.g4CKhod56192@freefall.freebsd.org> <20020512230017.GB4770@genius.tao.org.uk> <20020512163100.A26082@iguana.icir.org> <200205122343.g4CNhP7X023643@khavrinen.lcs.mit.edu> <20020513092718.A13919@wantadilla.lemis.com> <20020513012619.GA1967@athlon.pn.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
[moved to -chat]

On Sunday, 12 May 2002 at 18:26:19 -0700, Marcel Moolenaar wrote:
> On Mon, May 13, 2002 at 09:27:18AM +0930, Greg 'groggy' Lehey wrote:
>> On Sunday, 12 May 2002 at 19:43:25 -0400, Garrett Wollman wrote:
>>> <<On Sun, 12 May 2002 16:31:00 -0700, Luigi Rizzo <luigi@FreeBSD.org> said:
>>>> 							I know,
>>>> 							but
>>>> 							sometimes
>>>> 							it is
>>>> 							unavoidable
>>>> 							to move
>>>> 							to 4
>>>> 							spaces.
>>>
>>> 							If the code is
>>> 							lined up down
>>> 							the right hand
>>> 							side of the
>>> 							screen, then
>>> 							it almost
>>> 							certainly
>>> 							needs to be
>>> 							refactored --
>>> 							not
>>> 							reindented!
>>
>> 							If the code is lined up down the right hand side of the screen,
>> 							then maybe it's the screen which needs to be remade, not the
>> 							code.  Why should we still live in the shadow of punched cards?
>
> The argument that code looks better or is more readable when
> indented with 4 spaces as compared to 8 spaces can be applied
> recursively and transitively to yield that code looks better
> or is more readable when not indented at all. Since this is
> obviously a silly statement, I can only conclude that the whole
> reasoning is flawed. 

The argument that code looks better or is more readable when indented
with 8 spaces as compared to 4 spaces can be applied recursively and
transitively to yield that code looks better or is more readable when
indented an infinite amount.  Since this is obviously an even more
silly statement, I can only conclude that the whole metareasoning is
flawed, or that 4 spaces are better than 8.

> The eternally recurring style(9) debate is the other dead givaway
> that it's not solving anything, but rather creates problems.

I'm not really attacking style(9) here (I'll reserve that for some
other time :-), I'm just pointing out that there are alternative
arguments.  Times change.  For example, many programming languages
*do* have no indentation.

> \begin{brainfart}
> CRA n.
> 	Compulsive Reintenders Anonymous. A support group
> 	for people with an unnatural tendency to reindent
> 	anything not indented with their favorite spacing.
> \end{brainfart}
>
> ;-)
>
> (sorry, couldn't resist and I'm probably going to be
>  very sorry I put it here)

Especially when people point out that it was done with the best of
(re)intentions? :-)

Greg
--
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020513113450.C8222>