[Courses] Style (was Lesson Three: Basic
Declarations&Expressions)
Jenn Vesperman
jenn at anthill.echidna.id.au
Tue Oct 15 09:41:38 EST 2002
On Tue, 2002-10-15 at 09:11, Akkana wrote:
> Jenn Vesperman writes:
> > I believe that the aspects which can be easily changed by a machine
> > (where the braces are, indentation levels) shouldn't be strictly
> > enforced in a project.
>
> It depends on the project, of course; but if a project is managed
> by CVS or a similar version control system, then if you reformat that
> file for your own reading pleasure, then later cvs commit that file
> because you changed one line of code, as far as CVS is concerned you
> now own nearly every line of that file. Also, if you reformat a
> file before working on it, cvs diff (even if you use the -w argument
> to ignore whitespace) may think you changed a lot more lines than
> you actually did.
Or you can use a wrapper of some sort to reformat the code before it's
checked in, every time.
Jenn V.
--
"Do you ever wonder if there's a whole section of geek culture
you miss out on by being a geek?" - Dancer.
jenn at anthill.echidna.id.au http://anthill.echidna.id.au/~jenn/
More information about the Courses
mailing list