Re: driver source code indentation - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: driver source code indentation
Date
Msg-id 3B97A987.4060704@xythos.com
Whole thread Raw
In response to driver source code indentation  (Liam Stewart <liams@redhat.com>)
Responses Re: driver source code indentation
Re: driver source code indentation
List pgsql-jdbc
Dave,

I agree with you, and it seems that much of the existing jdbc code is
formated that way.  But before starting a thread on what everybody
prefers as their java format, let me first ask the question:


Should the jdbc java code use the same formatting as the C code?

If the answer is yes, then we know what the format is going to be.  Else
we can have what I am sure will be a long religious battle on what style
would be best for the java code.

My personal vote is to stick with the same format as the C code.  While
personally I think a different format would be better, I don't think it
is worth the hassle, and I can live with the existing format.

thanks,
--Barry



Dave Cramer wrote:
> Well, my vote would be for a 2 space indent.
>
> Dave
> On Tue, 2001-09-04 at 16:59, Tom Lane wrote:
>
>>Barry Lind <barry@xythos.com> writes:
>>
>>>I am OK with the style used for the C code.  However I would like the
>>>following additional step done for the java code:  replace all tabs with
>>>spaces.
>>>
>>I disagree with this, because then we are *not* applying the same coding
>>standards in the backend and in JDBC.  If you want to propose that we
>>dispense with tabs throughout the system, feel free to propose that ---
>>but it was shot down last time and likely will be again.
>>
>>I personally concur that four-space tabs is a horrible standard, and
>>would much rather see us using eight-space tab stops.  But I haven't
>>been able to obtain any significant consensus for that view.  Some
>>developers apparently use editors where a physical tab character needs
>>to equal the logical indent amount...
>>
>>            regards, tom lane
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 5: Have you checked our extensive FAQ?
>>
>>http://www.postgresql.org/users-lounge/docs/faq.html
>>
>>
>>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
>



pgsql-jdbc by date:

Previous
From: Rene Pijlman
Date:
Subject: Re: JDBC patch procedures (Re: [PATCHES] Patch for jdbc2 ResultSet.java)
Next
From: Bruce Momjian
Date:
Subject: Re: error - NOTICE: current transaction...MORE DETAIL...