From owner-freebsd-chat@FreeBSD.ORG Tue Mar 31 20:35:40 2009 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D18B5106572E for ; Tue, 31 Mar 2009 20:35:40 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 0F6D78FC19 for ; Tue, 31 Mar 2009 20:35:38 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n2VKZT0s020854; Tue, 31 Mar 2009 22:35:29 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n2VKZTU6020851; Tue, 31 Mar 2009 22:35:29 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 31 Mar 2009 22:35:29 +0200 (CEST) From: Wojciech Puchar To: Chuck Robey In-Reply-To: <49D27D8B.2070607@telenix.org> Message-ID: References: <20090331025726.GA10888@thought.org> <20090331112122.ae329221.freebsd@edvax.de> <49D202F0.9010104@utoronto.ca> <20090331140845.a1ece3c0.freebsd@edvax.de> <49D24EC8.7030507@gmail.com> <49D27D8B.2070607@telenix.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: michael , freebsd-chat@freebsd.org Subject: Re: Why?? (prog question) X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2009 20:35:41 -0000 >>>>> Tabbing is the worst form of indentation. It is *much* better to use >>>>> spaces consistently. > > The only real sin is not sticking to one style per project. All else is just EXACTLY. but when i write my own program i do it to make it the way best for me. anyway - doing ANYHOW but including proper comments are always best. proper comments are like this: /* this procedure calculates ...blah blah... from data included in tables pointed by X and Y, and stores results into table pointed by argument Z */ someprocedure(const int *X,const int *Y, const int *Z,int length) { someworkhere(); coded_in_any_style_may_be_mess } example of BAD comments: a=b+3; //adds 3 to b and stores result to a