Re: Some notes on pgAdmin

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Chuck McDevitt <cmcdevitt(at)greenplum(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Some notes on pgAdmin
Date: 2009-03-09 18:11:31
Message-ID: 49B55BD3.6080100@hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Dave Page wrote:
> On Sat, Feb 28, 2009 at 12:19 AM, Chuck McDevitt
> <cmcdevitt(at)greenplum(dot)com> wrote:
>> 1. Going through the code, I noticed that quite a few files use 4
>> spaces for indent on most of their lines, but have some lines using tab
>> characters. Usually it’s newer patches that introduced the tabs, but not
>> always. Mixing both kinds of indents is confusing.
>
> Yeah - we generally use 4 spaces, but tabs keep creeping in. I'm
> beginning to this we should use tabs instead, and see if we can't run
> something akin to pgindent over the code to clean it up nicely.
>
> What do people prefer - tabs or spaces?

There'd be a point to having the same convention as the main project.

I'm not sure it's worth going over the whole code with pgindent or
similar though - it makes it so much harder to backtrack the code in
svn. Especially since we haven't had a standard before, it'll likely
touch way too much code.

But it'd still be a good thing to have a standard for new code.

//Magnus

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Luis Ochoa 2009-03-09 19:17:42 Re: Some notes on pgAdmin
Previous Message Chuck McDevitt 2009-03-09 18:06:31 Re: Some notes on pgAdmin