geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Dillon <ja...@coredevelopers.net>
Subject Re: XML indent?
Date Wed, 13 Aug 2003 07:02:36 GMT
Heh, I would say that 2 isn't enough, 4 is a bit much... though 
standard.  3 makes me feel all warm and fuzzy inside for both code and 
xml :-P

--jason

PS. I love this debate ;-)


On Wednesday, August 13, 2003, at 06:29  AM, n. alex rupp wrote:

> +1 for 4 spaces.
>
> It's a standard convention throughout many many programs.  3 isn't 
> enough.
> 5 is right out.
>
> --
> N. Alex Rupp (n_alex_rupp@users.sf.net)
>
>
> ----- Original Message -----
> From: "Dain Sundstrom" <dain@coredevelopers.net>
> To: <geronimo-dev@incubator.apache.org>
> Sent: Tuesday, August 12, 2003 5:01 PM
> Subject: Re: XML indent?
>
>
>> On Tuesday, August 12, 2003, at 08:11 AM, Alex Blewitt wrote:
>>
>>>> http://nagoya.apache.org/wiki/apachewiki.cgi?ApacheJ2EE/
>>>> CodingStandards
>>>>
>>>> have updated the wiki - how about we go for the 2 characters indent
>>>> which is quite common?
>>>
>>> Why the discrepancy between indenting Java code with 4 characters, 
>>> and
>>> XML with 2? Why not be consistent?
>>>
>>> IMHO I'd prefer 2 for both, but that's my personal preference.
>>>
>>> If you're using Eclipse (for example) then you can configure it to
>>> insert X spaces when you hit the tab key. Trying to implement it so
>>> that it uses 4 with .java files and 2 with .xml files is a 
>>> non-trivial
>>> task.
>>
>> +1 for 4 spaces
>>
>> Idea (IntelliJ) has the same issue... Also the common reason I hear 
>> for
>> having smaller indents in XML is because of the deep indentation, but
>> to me that is trying to cure the sympotom and not the real problem of 
>> a
>> badly designed schema.
>>
>> -dain
>>
>> /*************************
>>   * Dain Sundstrom
>>   * Partner
>>   * Core Developers Network
>>   *************************/
>>
>>
>
>


Mime
View raw message