tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Armstrong <a...@tagish.com>
Subject Re: [jtc] tabs policy??
Date Sat, 23 Jun 2001 08:57:59 GMT
cmanolache@yahoo.com wrote:
> 
> On Sat, 23 Jun 2001, Andy Armstrong wrote:
> 
> > Here we go... ;-)
> >
> > I like tabs set to four spaces, tabs in source rather than spaces and
> > opening braces on a new line. How evil does that make me?
> 
> Not necesarily evil, I also like the week with 3 days ( 1 for work, 2 for
> weekend ), tabs in source, lines below 80 chars, and consistent
> indentation.
> 
> The only problem is that all the code in jakarta-tomcat repository is
> using the old eight space tab, with 4 space indentation.

Is there then a recommended tool for reformatting Java source to the
required standard? I use indent for C and C++ -- is there an equivalent
for Java?

> ( xml projects seem to prefer a 2 space indentation )
> 
> > Actually I was just wondering the other day how easy it would be to do
> > smart de-tabbing on source -- i.e. how easily can you infer the original
> > tab size given some arbitrary source file. Of course it's easy enough
> > for a human, but how much syntax awareness would you need to do it
> > automagically?
> 
> It's much easier to set the tab consistenly. The "8" has been used in
> typewriters and most computers ( until recent editors decided it'll be fun
> to allow you to configure that, and also what character coresponds to the
> "0x41" byte ).

You're being satirical now aren't you ;-)

-- 
Andy Armstrong, Tagish

Mime
View raw message