Martin Desruisseaux ha scritto:
> I recently edited (minor changes discussed two or three days ago) some files 
> other than my usual 
> ones. Those files are using tabulations for indentation, which result in 
> inconsistent indentation since:
>
>    * My NetBeans IDE is configured with 4 spaces by tabulation;
>    * DOS "type" or Windows Notepad display 8 spaces by tabulation;
>    * My Netbeans IDE is configured for inserting spaces instead of
>      tabulations, so the indentation appears okay in IDE configured
>      with 4 spaces by tabulation, but appears broken when displayed
>      from DOS or Unix command line (including SVN) or Notepad.
>
> Do we have a policy about tabulation width? Or do we ask to everyone to 
> configure their IDE for 
> inserting spaces inplace of tabulations?
>   
Hum, Jalopy should take care of it, but no-one is using it at the moment.
The java coding convention,   chapter four, says "Four spaces should be 
used as the unit of indentation.
The exact construction of the indentation
(spaces vs. tabs) is unspecified. Tabs must be set exactly every 8 
spaces (not 4)."

Now, I guess the problem is everyone working on Geotools besides of you
is using Eclipse (as far as I know, at least), and out of the box 
Eclipse does
indent code with pure tabs, with 4 spaces width (thus violating the 
convention).

Ah, if you just want my opinion, I like spaces better, but I sometimes 
forget to reconfigure
Eclipse when I install a new version.
Also, in my opinion, there is only one kind of coding convention, the 
kind that you can enforce
automatically, everything else is bound to be violated.
Very few people are patient enough to hand format the code up to any 
standard.
I know I'm not. :-)

Cheers
Andrea


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to