From owner-freebsd-chat Thu Sep 27 13:14:23 2001 Delivered-To: freebsd-chat@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 7A61937B40B for ; Thu, 27 Sep 2001 13:14:20 -0700 (PDT) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 2F7E7BD38 for ; Thu, 27 Sep 2001 13:14:20 -0700 (PDT) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id NAA11180 for ; Thu, 27 Sep 2001 13:14:19 -0700 Received: (from jojo@localhost) by localhost.localdomain (8.11.3/8.11.3) id f8RKCjp61073; Thu, 27 Sep 2001 13:12:45 -0700 (PDT) (envelope-from swear@blarg.net) Cc: freebsd-chat@FreeBSD.ORG Subject: Re: code density vs readability References: <20010927141333.A44288@dogma.freebsd-uk.eu.org> From: swear@blarg.net (Gary W. Swearingen) Date: 27 Sep 2001 13:12:45 -0700 In-Reply-To: Message-ID: Lines: 33 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Brad Knowles writes: > If it's so bad, you can always run it through a program to > reformat it afterwards. Indeed, I believe that the judicious > use of formatting programs can help set a common project-wide > "style" to which all code will comply, because all code gets fed > through the formatter before being submitted. So it can be uniformly bad. But I do think that's the best plan. As a flunky programmer I used to get very upset when lame project standards would be imposed on some people (eg, me) while gross violations by some others would be tolerated. Rambling on: One thing going for the lots-of-space theory is just that the alternative has significant problems. I don't mean "no space"; I mean "judicial space". First, of course, judgements differ. Second, spaces (esp. blank lines) tend to categorize (usually unlabeled) things and often results in improper categorization to meet the rules of standards or esthetics or carelessness. Spacing most everything is rather, in this regard, like having no spaces at all where there is no improper categorization since there is no categorization. I find this esp. true regarding horizontal spacing. I like lots of space. The only downside I see is the reduction of context in an editor, but I find that less important, esp. given modern editor window sizes. It can also depend a lot on one's editor/font settings. Editors can have greatly differing sizes and ratios of character/line sizes and spaces between same. Degrading eyesight is another important factor. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message