freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Brian Bruns <camber AT ais.org>
- To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
- Subject: Re: indent(1) bent
- Date: Thu, 24 Oct 2002 16:48:17 -0400 (EDT)
Ok, I'm getting really sick of this. It's seems to come up about every
six months or so. Last time we wrote a CodingStyle document to address
this. Anyway, I'll weigh in with my thoughts (although don't feel I have
any more weight than anyone else).
I like tabs. Having to hit space multiple times to align code slows me
down tremendously. I know there are ways to tie tab to produce multiple
spaces but that means I have to be modal when moving between projects
(invoking an alias to change behaviour when I edit a freetds file or a
file from another project).
Where character by character alignment is wanted, tabs are wholly
inappropriate. In the case of:
if (a == b ||
b == c) {
there are 3 spaces or a tab in front of if, but from the if to the 'b =='
part there are 4 spaces. So, if you say indentions are x spaces, you
violating that too. Whether you use tabs or spaces for indention is moot
because that is not indention it's column alignment, if you get me. I
have no problem with tab indenting and then using spaces to align,
although some will surely argue the aesthetics of that.
And freddy, the CodingStyle document specifies functions to be written
without a space between name and (, so that is the policy at present.
Brian
On 24 Oct 2002, Frediano Ziglio wrote:
> Il gio, 2002-10-24 alle 20:52, Frediano Ziglio ha scritto:
> > >
> > > I don't think the above would be improved by setting tabs to 8, and I
> > > don't
> > > think they would be harmed by setting them to 4, or even harmed much by
> > > setting them to 5. :)
> > >
> >
> > Something raised yesterday in a test.
> > We spoke about possibility to set tabstop to whatever we want.
> > But using indentation on parameter lead in a problem
> >
> > This at code like
> >
> > variable = myfunction(param1, param2,
> > param3);
> >
> > aligned will become something like
> >
> > \tvariable = myfunction(param1, param2,
> > \t\t\t\t\t param3);
> >
> > Using tabspace 8
> >
> > variable = myfunction(param1, param2,
> > param3);
> >
> >
> > unaligned...
> >
> > Is this a problem?
> >
>
> Also i vote for removing the space after function name, like
>
> function_name (param);
>
> All code is written with
>
> function_name(param);
>
> freddy77
>
-
Re: indent(1) bent
, (continued)
- Re: indent(1) bent, ZIGLIO Frediano, 10/23/2002
- Re: indent(1) bent, Steve Langasek, 10/23/2002
- Re: indent(1) bent, Bernd Jendrissek, 10/23/2002
- Re: indent(1) bent, Lowden, James K, 10/24/2002
- Re: indent(1) bent, Frediano Ziglio, 10/24/2002
- Re: indent(1) bent, Frediano Ziglio, 10/24/2002
- Re: indent(1) bent, Bernd Jendrissek, 10/24/2002
- Re: indent(1) bent, Castellano, Nicholas, 10/24/2002
- Re: indent(1) bent, Mark J. Lilback, 10/24/2002
- Re: indent(1) bent, Castellano, Nicholas, 10/24/2002
- Re: indent(1) bent, Brian Bruns, 10/24/2002
- Re: indent(1) bent, Lowden, James K, 10/24/2002
- Re: indent(1) bent, ZIGLIO Frediano, 10/25/2002
Archive powered by MHonArc 2.6.24.