river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: Formatting of River Source Tree
Date Sat, 04 Dec 2010 16:26:17 GMT
I have some issues around tabs;

1. There are more than one "use tabs" convention out there;
   a. One tab for an indentation.
   b. Tab onto next 8 character modulo. (Example; many JDK files)

2. For 1a, when catting a source file in the console, it becomes
unreadable due to the 8 character expansion that happens there.
    For 1b. It becomes totally unreadable if you don't have your tab
expansion set to 8 characters.

3. Some (not all) projects that claim to use tabs, don't enforce it,
so unless you are actually using the same as everyone else,
indentation is buggered.

So the difference between theory and practice is that in theory there
is no difference between theory and practice, but in practice there

But I will not get involved in the flamewar that normally follows when
this is brought up. ;-)


On Thu, Dec 2, 2010 at 10:40 PM, Gregg Wonderly <gregg@wonderly.org> wrote:
> As I've said here before and elsewhere, I really feel that tabs only is the
> most beneficial indentation to use.  The reason is that it allows people who
> use odd tab intervals to still see things and use their tab key while
> editing without having to change their IDE settings while editing.
> Sun has an old formatting document that discusses using spaces only, and
> netbeans does this by default.  The biggest issue for me, of course, is that
> I use 4 character tab expansion and tabs only in all of my development.
> In an open source world, all tabs is really the only thing that provides the
> most flexibility it seems to me.
> Gregg Wonderly

Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

View raw message