I'm pretty sure it's not just me and that Carl is equally adamant against 
tabs. I also don't think anyone on the Posse disagreed with it, even if 
they aren't as passionate about it as Carl and I.

If you've never run into a file with mixed tabs or spaces, congratulations, 
you're on a team where everyone has agreed on formatting settings. Consider 
yourself lucky. 

Eclipse formats using tabs by default, and I'm pretty sure IntelliJ and 
NetBeans use spaces by default, so unless you're careful to all use the 
same IDE, or to check in settings files to make sure everyone has the right 
format, you might accidentally start mixing. And I think regardless of 
whether you're a tab-person or a space-person, everyone agrees that mixing 
is bad. I won't rehash the arguments for why we think spaces are better 
than tabs; it sounds like your post was stating that you don't think 
there's an issue here, and I've seen a lot of code, including core JDK 
classes, mixing spaces.

(Here are some really old blog entries I wrote related to tabs: 
https://blogs.oracle.com/tor/entry/code_advice_3_no_tabs
https://blogs.oracle.com/tor/entry/tabs_are_evil_part_2
https://blogs.oracle.com/tor/entry/tabs_are_evil_part_3
Two of them show source files, one from the JDK, one from the findbugs 
source code, where I encountered mixed indentation.
)

-- Tor

On Friday, January 25, 2013 7:28:40 AM UTC-8, rakesh mailgroups wrote:
>
> Hi all,
>
> something I've always wanted to ask - I've heard Tor complain about this 
> issue about using spaces or tabs many times over the years.
>
> Its not something I've ever encountered in over 10 years of Java 
> development.
>
> Is it just Tor's OCD kicking in about how he would like to see the code? 
> Or is it a legitimate issue I just don't happen to come across?
>
> In a team, usually everyone is using the same IDE, so we can all just use 
> the same "beautifier" - Intellij for example, has the "format before 
> checkin" option and even Eclipse had something similar for formatting the 
> code on demand.
>
> Or perhaps this is a Netbeans issue? I've often felt that Netbeans was 
> only one step up from a text editor so maybe the issue is more prevalent 
> there.
>
> Rakesh
>

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To post to this group, send email to javaposse@googlegroups.com.
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/javaposse?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to