You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by Doug Cutting <cu...@apache.org> on 2007/10/01 21:47:22 UTC

Re: Tika coding style (Was: [jira] Commented: (TIKA-6) Port Nutch (or better) MimeType detection system into Tika)

Sami Siren wrote:
> Currently there are differences in indentation 2 vs 4 spaces. Which one
> should we use?

I prefer 2-space indentation, since it makes it much easier to fit code 
into 80 columns.

Doug

Re: Tika coding style (Was: [jira] Commented: (TIKA-6) Port Nutch (or better) MimeType detection system into Tika)

Posted by Chris Mattmann <ch...@jpl.nasa.gov>.
Folks,

I'm fine with either 2 space or 4 space indentations. I'm -1 for any tab
indentations though, and I think we all agree on that.

Cheers,
  Chris



On 10/5/07 5:03 AM, "Jukka Zitting" <ju...@gmail.com> wrote:

> Hi,
> 
> On 10/1/07, Doug Cutting <cu...@apache.org> wrote:
>> Sami Siren wrote:
>>> Currently there are differences in indentation 2 vs 4 spaces. Which one
>>> should we use?
>> 
>> I prefer 2-space indentation, since it makes it much easier to fit code
>> into 80 columns.
> 
> I prefer wider indentations since they make it very clear when you
> really should start breaking your code into smaller methods.
> 
> Also, 4 spaces is what the Sun Java conventions explicitly mention as
> the unit of indentation.
> 
> BR,
> 
> Jukka Zitting

______________________________________________
Chris Mattmann, Ph.D.
Chris.Mattmann@jpl.nasa.gov
Cognizant Development Engineer
Early Detection Research Network Project

_________________________________________________
Jet Propulsion Laboratory            Pasadena, CA
Office: 171-266B                     Mailstop:  171-246
_______________________________________________________

Disclaimer:  The opinions presented within are my own and do not reflect
those of either NASA, JPL, or the California Institute of Technology.



Re: Tika coding style (Was: [jira] Commented: (TIKA-6) Port Nutch (or better) MimeType detection system into Tika)

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 10/1/07, Doug Cutting <cu...@apache.org> wrote:
> Sami Siren wrote:
> > Currently there are differences in indentation 2 vs 4 spaces. Which one
> > should we use?
>
> I prefer 2-space indentation, since it makes it much easier to fit code
> into 80 columns.

I prefer wider indentations since they make it very clear when you
really should start breaking your code into smaller methods.

Also, 4 spaces is what the Sun Java conventions explicitly mention as
the unit of indentation.

BR,

Jukka Zitting