Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-02 Thread Paul King
No, checkstyle can check against tabs as you do but not the other way around. On Fri, Jul 2, 2010 at 3:21 PM, B Smith-Mannschott wrote: > On Fri, Jul 2, 2010 at 03:03, Paul King wrote: > > > > Perhaps I'll have to look into it further. What tools do you use to > > automatically check that someon

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread B Smith-Mannschott
On Fri, Jul 2, 2010 at 03:03, Paul King wrote: > > Perhaps I'll have to look into it further. What tools do you use to > automatically check that someone hasn't mixed indent styles? > Cheers, Paul. We use checkstyle (via the eclipse plugin) to verify that there are no tabs in our sources. Presuma

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Paul King
Perhaps I'll have to look into it further. What tools do you use to automatically check that someone hasn't mixed indent styles? Cheers, Paul. On Thu, Jul 1, 2010 at 11:03 PM, Reinier Zwitserloot wrote: > In regards to the 'you can't mix and match' rule 3: Actually, The One > True Indent style *

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Mark Volkmann
I use jVi and love it! I've tried the vi plugins for all the major IDEs and think jVi is the best of them. On Thu, Jul 1, 2010 at 1:54 PM, Tor Norbye wrote: > jVi for NetBeans isn't just a keyboard profile; given vi's modes etc I > don't think it's possible to accurately support it via keybinding

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Lyle
Fantastic, I'll definitely play with that next time I get a chance. Thanks again. Tangentially, I think the whole "IDE vs vim/emacs" debate should be moot. It shouldn't be either/or, we should have both; use the IDEs for all of the integration features they excel at, while using a more sophisticat

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Lyle
On Thu, Jul 1, 2010 at 12:04 PM, Tor Norbye wrote: > Have you tried jvi (a vi plugin for NetBeans) ?   I don't use it > personally but I've seen people state that it works and that it works > well (e.g. http://jjinux.blogspot.com/2010/06/ides-netbeans.html ) > > There's a version available for 6.9

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Greg Reddin
On Thu, Jul 1, 2010 at 10:20 AM, Tor Norbye wrote: > This is 2010; people don't > write code on tiny terminals anymore but solid IDEs on decent screens. I'd just like to point out there still is a niche use case similar to the "tiny screen" use case. It has no bearing on the tabs vs. spaces discu

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Alexey Zinger
Kawasaki EX500 http://azinger.blogspot.com http://bsheet.sourceforge.net http://wcollage.sourceforge.net From: Weiqi Gao To: javaposse@googlegroups.com Sent: Thu, July 1, 2010 10:16:20 AM Subject: Re: [The Java Posse] Re: Tab / Spaces anyone? Tabs are evil, period

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Kevin Wright
On 1 July 2010 15:16, Weiqi Gao wrote: > Tabs are evil, period. > > Using tabs in source files means that every editor, viewer, pretty printer > that is used to process them needs to agree on where the tab stops are. > This is harder to achieve as the program reaches more people. > > [ed: almost

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Weiqi Gao
Tabs are evil, period. Using tabs in source files means that every editor, viewer, pretty printer that is used to process them needs to agree on where the tab stops are. This is harder to achieve as the program reaches more people. That we are having a Tabs vs. Spaces debate is a consequence

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Kevin Wright
IntelliJ is even worse! Try clicking in a bit of whitespace, or cursoring down from the end of a long line The caret just hangs there, expectantly, looking like it's about to fall, instead of snapping to the end of the last valid character on that line. (yes, I know it's configurable, but it's not

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Rakesh
guys, can I recommend you start using a real IDE like Intellij? In the last 5 years of Java development, the use of spaces or tabs has never come up. I really don't get this thread. Rakesh On Thu, Jul 1, 2010 at 4:32 PM, Kevin Wright wrote: > It's basic ecology... > Tabs take up fewer characte

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Lyle
The other minor advantage sometimes noted for leading tabs is lazy cursor navigation. I don't really find that convincing, either, since a) I'm never surfing around in the whitespace before the actual content, and b) any editor worth using will allow you to skip any amount of whitespace with one ke

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Kevin Wright
It's basic ecology... Tabs take up fewer characters than multiple spaces fewer chars = smaller files = faster checkins, etc. I wonder what the carbon footprint is of manufacturing all the HDD used globally to store superfluous spaces? On 1 July 2010 16:20, Tor Norbye wrote: > On Jul 1, 2:48

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Viktor Klang
On Thu, Jul 1, 2010 at 2:31 PM, Dominic Mitchell wrote: > On Thu, Jul 1, 2010 at 12:02 PM, Viktor Klang wrote: > >> On Thu, Jul 1, 2010 at 11:48 AM, Mark Volkmann > > wrote: >> >>> I'm surprised that all the replies to this thread are in favor of tabs >>> over spaces. In my experience, the vast ma

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Jess Holle
The real issue is that many developers can't handle always using tabs for indenting and always using spaces for spacing -- it's too much for them, in part because the difference is invisible and thus mistakes only become obvious to those with different tab stop settings. All it takes is a few

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Dominic Mitchell
On Thu, Jul 1, 2010 at 12:02 PM, Viktor Klang wrote: > On Thu, Jul 1, 2010 at 11:48 AM, Mark Volkmann > wrote: > >> I'm surprised that all the replies to this thread are in favor of tabs >> over spaces. In my experience, the vast majority of developers favor >> spaces. For me there is one main re

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Viktor Klang
On Thu, Jul 1, 2010 at 11:48 AM, Mark Volkmann wrote: > I'm surprised that all the replies to this thread are in favor of tabs > over spaces. In my experience, the vast majority of developers favor > spaces. For me there is one main reason I prefer spaces ... printers. > Sometimes I print code. Pr

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Paul King
I tend to be in the 'tabs are evil camp' most of the time. Not that they are evil but there are some missing rules in Reinier's list. Rule 3: If you use tabs you must use them everywhere - you can't mix and match and everyone else must too. Rule 4: Every tool in your toolset including all future on

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Kevin Wright
With the old style tractor-fed printers (dot matrix, or whatever) I would agree with you, but I think such things are now firmly in the past for most developers. It ain't about the rise of cheap laser printing either, just think of all the changes that have conspired to make printing less necessar

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-07-01 Thread Mark Volkmann
I'm surprised that all the replies to this thread are in favor of tabs over spaces. In my experience, the vast majority of developers favor spaces. For me there is one main reason I prefer spaces ... printers. Sometimes I print code. Printers seem to always use eight spaces for tabs which causes ma

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Mark Derricutt
You mean like Fortress?Admittedly, it only uses them in the rendered version of your source code tho. -- Pull me down under... On Wed, Jun 30, 2010 at 10:02 AM, Eric Jablow wrote: > And then we should use ≤ instead of <=, ≠ instead of !=, and x ∋ s -- You received this message because you

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Dominic Mitchell
On Tue, Jun 29, 2010 at 11:07 PM, Kevin Wright wrote: > The two biggest problems? Typing the chars (though autocomplete helps) and > finding fonts that actually have the chars :) It's incredible how a font can be lacking in a *whitespace character*. -Dom -- You received this message because

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Kevin Wright
And then there's Fortress, of course: http://projectfortress.sun.com/Projects/Community/wiki/FortressByExample Also a JVM language :) On 29 June 2010 23:07, Kevin Wright wrote: > Java source files already are (or can be) UTF-8 > > Scala takes this further, and has actually started using Unicod

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Kevin Wright
Java source files already are (or can be) UTF-8 Scala takes this further, and has actually started using Unicode operators: http://scala-programming-language.1934581.n4.nabble.com/More-unicode-alternatives-for-ASCII-operators-td2008146.html Scalaz takes this to something of an extreme: (warning:

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Kerry Sainsbury
Don't Apple have a patent on Spabs? On Wed, Jun 30, 2010 at 9:27 AM, Christian Catchpole < christ...@catchpole.net> wrote: > Or you could go into your editor settings and set: Treat Spabs as > Taces > > Spabs vs Taces begins. > > On Jun 30, 6:56 am, Viktor Klang wrote: > > On Tue, Jun 29, 2010 a

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Dominic Mitchell
On Tue, Jun 29, 2010 at 4:08 PM, Robert Casto wrote: > Seriously, why do we have to use ASCII text files anyway? > You're right. Why do we have to use ASCII? This is the 21st century — we can use UTF-8! Now, instead of space vs tab, you can debate: space vs tab vs en space vs em space vs zero

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Robert Casto
I guess I made the mistake of being serious. When you get an upgrade on the Tace though, let me know. I'm not going to mess up my files until I see how it has had some play time in the real world. :) On Tue, Jun 29, 2010 at 4:56 PM, Viktor Klang wrote: > > > On Tue, Jun 29, 2010 at 10:44 PM, Chri

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Viktor Klang
On Tue, Jun 29, 2010 at 10:44 PM, Christian Catchpole < christ...@catchpole.net> wrote: > Why don't we just create a special character called a Spab. Which has > qualities of both. Made from unicorn farts of course :) > Seriously? Who uses the Spab? It's aligning things totally messed up. Everyon

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Robert Casto
I know its a pain, but so is having to deal with spaces and tabs. How about telling the editor to convert tabs to spaces when entering text? Better than leaving tabs in there. Robert On Jun 29, 2010 12:52 PM, "B Smith-Mannschott" wrote: On Tue, Jun 29, 2010 at 17:08, Robert Casto wrote: > Can

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread B Smith-Mannschott
On Tue, Jun 29, 2010 at 17:08, Robert Casto wrote: > Can't we just move on from simple text files and use something better to > hold our source code? Why always such an unwieldy medium? Seriously, why do > we have to use ASCII text files anyway? Couldn't we put something in place > that would get

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Robert Casto
Can't we just move on from simple text files and use something better to hold our source code? Why always such an unwieldy medium? Seriously, why do we have to use ASCII text files anyway? Couldn't we put something in place that would get rid of the parts we don't want the compiler to see? A pre-pr

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Lyle
Reinier's Rules (ha!) are the best argument I've seen for tab characters infiltrating source files, but when the bits hit the disk I agree with Ben. For collaborative work, it's often tough enough to get people to indent logically and consistently with just *one* type of whitespace character. -Lyl

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread B Smith-Mannschott
On Tue, Jun 29, 2010 at 14:41, Reinier Zwitserloot wrote: > I don't understand the tabs v. spaces war. There's clearly a right > answer: > > Tabs for indents. Spaces for spacing. > > Rule #1: A tab character can never occur in any source file, unless > the previous character is (A) a tab, (B) the

RE: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Roel Spilker
Reinier, you forgot to mention that "empty lines" should also contain tabs for the right indentation level. -Oorspronkelijk bericht- Van: reini...@gmail.com [mailto:javapo...@googlegroups.com] Namens Reinier Zwitserloot Verzonden: dinsdag 29 juni 2010 14:41 Aan: The Java Posse Onderwerp:

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Wildam Martin
On Tue, Jun 29, 2010 at 14:41, Reinier Zwitserloot wrote: > I don't understand the tabs v. spaces war. There's clearly a right > answer: > Tabs for indents. Spaces for spacing. I fully agree with you and I just wanted to copy your rules to a text file for later reference when I am in discussion w

Re: [The Java Posse] Re: Tab / Spaces anyone?

2010-06-29 Thread Kevin Wright
+1 Clearly put, and hard to argue with :) On 29 June 2010 13:41, Reinier Zwitserloot wrote: > I don't understand the tabs v. spaces war. There's clearly a right > answer: > > Tabs for indents. Spaces for spacing. > > Rule #1: A tab character can never occur in any source file, unless > the pre