Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2009 22:35:29 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Chuck Robey <chuckr@telenix.org>
Cc:        michael <michael.copeland@gmail.com>, freebsd-chat@freebsd.org
Subject:   Re: Why??  (prog question)
Message-ID:  <alpine.BSF.2.00.0903312232070.20833@wojtek.tensor.gdynia.pl>
In-Reply-To: <49D27D8B.2070607@telenix.org>
References:  <20090331025726.GA10888@thought.org> <20090331112122.ae329221.freebsd@edvax.de> <49D202F0.9010104@utoronto.ca> <20090331140845.a1ece3c0.freebsd@edvax.de> <alpine.BSF.2.00.0903311623210.19609@wojtek.tensor.gdynia.pl> <49D24EC8.7030507@gmail.com> <49D27D8B.2070607@telenix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> 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





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