From owner-freebsd-chat Sat Nov 23 1:55:16 2002 Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6010337B401 for ; Sat, 23 Nov 2002 01:55:15 -0800 (PST) Received: from post-20.mail.nl.demon.net (post-20.mail.nl.demon.net [194.159.73.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id A203143EA9 for ; Sat, 23 Nov 2002 01:55:14 -0800 (PST) (envelope-from cls@raggedclown.net) Received: from [212.238.197.102] (helo=mailhost.raggedclown.net) by post-20.mail.nl.demon.net with esmtp (Exim 3.36 #1) id 18FX0L-000FWs-00 for freebsd-chat@freebsd.org; Sat, 23 Nov 2002 09:55:14 +0000 Received: from localhost (localhost [127.0.0.1]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id A3D8E832A for ; Sat, 23 Nov 2002 10:55:12 +0100 (CET) Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [dawn]) with ESMTP id 8C8241854 for ; Sat, 23 Nov 2002 10:55:01 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1009) id 4183D225F8; Sat, 23 Nov 2002 10:55:02 +0100 (CET) Date: Sat, 23 Nov 2002 10:55:02 +0100 From: Cliff Sarginson To: freebsd-chat@freebsd.org Subject: Re: Style(9) question Message-ID: <20021123095502.GB11348@raggedclown.net> References: <3DDF241B.FF30ACE2@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DDF241B.FF30ACE2@mindspring.com> User-Agent: Mutt/1.5.1i X-Virus-Scanned: by AMaViS 0.3.12pre8 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 On Fri, Nov 22, 2002 at 10:45:47PM -0800, Terry Lambert wrote: > Brad Knowles wrote: > > At 4:08 PM -0500 2002/11/22, John Baldwin wrote: > > > The reason to not put them in is to avoid wasting screen real-estate > > > on mostly blank lines. You also errantly assume that you will always > > > come back and add more statements later. :) > > > > I'm sorry. Why do we care about screen real-estate and having > > mostly blank lines, if this might help us write more correct and > > secure programs? And might help us write code that can be more > > easily managed in the future? > > Hard as this is to believe, some people don't have eidetic memories, > and they're not just "faking it" so they can pretend not to remember > some inconvenient fact. > > That means that they are limited to holding in their head only the > maximum amount of data that can be displayed on a screen at a time, > so the more non-whitespace data you can display in a limited amount > of real-estate, the better. > Psychologically speaking I think this is not necessarily true. Programs aside there can be too much information on a screen, a multitude of web-sites are like this. The logical conclusion (although I don't think it is the one you are trying to make btw) is that you should have multiple statements on a line. I am fairly keen on a the rather ad-hoc "rule" that if you cannot see the whole of a "C" function on the screen at the same time then you need to re-think it out. The exception to this being functions that are simply decision-makers, such as a long "switch" that simply sets flags etc. -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message