Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: c code "beautifier"

Author: Daniel Clausen

Date: 05:56:25 12/04/03

Go up one level in this thread


On December 04, 2003 at 08:39:50, Francesco Di Tolla wrote:

[snip]

>In my company we used to have strict standards on coding, people are not really
>always following them, but a "bad notation" like closing multiple braces on the
>same line is something nobody ever does.

In a company where several people are working on the same sources you're most
likely having a source repository and tools like cvs,rcs,CC to checkout/checkin
files. When you have that, it's possible to add the facility to run the source
thru cb/indent with your favourite settings and run it again thru cb/indent with
'repository settings' when you checkin the files. It's a bit more tricky when
you make diffs in the tree but since I don't do that 100 times a day, it's not a
big problem. (IMHO, YMMV)

I don't mind coding guidelines in a company as long as they're of the kind
"printIt() is not a good function name returning bool" or "please prefix
instance variables with m_", but I set my brackets whereever _I_ want. :)

Sargon



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.