[The Java Posse] Re: How many characters do you use for indention?

2011-05-18 Thread Casper Bang
(anyone who mentions they use tabs, please line up against the back wall) Bah if everyone just used a tab to signify a logical indentation level, your whole question becomes pointless - think about it for a second. Indentation should be about expressing semantics on screen, not act as a space

[The Java Posse] Re: Android tablets not selling?

2011-05-18 Thread Casper Bang
On May 17, 7:59 pm, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: I was surprised to read some comments about the NVidia CEO interview in which he asserts that Android tables are not selling well because of their costs. They probably just have too much Tegra silicon on stock. NVidea

[The Java Posse] Re: Show your Java Love...

2011-05-18 Thread Casper Bang
Gotta say, there's some truth to what Andrew says! Seems like there is only Java got replaced by there is only Scala, and that's the same scary simplemindedness I've always struggled with within the hardcore Java space. On May 18, 2:51 am, Andrew am2...@gmail.com wrote: The thing is I don't have

Re: [The Java Posse] Re: Show your Java Love...

2011-05-18 Thread Kevin Wright
Scala's a red herring here, it just so happens that I observed the issue on the Scala pages, nothing more. I was actually calling into question the methodology of that site. If anything, this is pro-Java. Given the observed tendency to mis categorise tweets as hating a language, perhaps this is

[The Java Posse] Re: Show your Java Love...

2011-05-18 Thread Vince O'Sullivan
On May 18, 8:19 am, Kevin Wright kev.lee.wri...@gmail.com wrote: At the end of the day, a pro-Scala attitude is also pro-Java. A fact which is all too easily forgotten. Is it? I had the impression that, for Scala to succeed, it has to replace Java - particularly in the enterprise. -- You

[The Java Posse] Re: Show your Java Love...

2011-05-18 Thread Lachlan O'Dea
I think The Posse have made it clear that they consider Java to mean the entire platform and ecosystem, including even Android. Given that, isn't discussion of Scala, Groovy, Clojure, et al, also on-topic for this group? -- You received this message because you are subscribed to the Google

Re: [The Java Posse] Re: Show your Java Love...

2011-05-18 Thread Kevin Wright
On 18 May 2011 08:26, Vince O'Sullivan vjosulli...@gmail.com wrote: On May 18, 8:19 am, Kevin Wright kev.lee.wri...@gmail.com wrote: At the end of the day, a pro-Scala attitude is also pro-Java. A fact which is all too easily forgotten. Is it? I had the impression that, for Scala to

[The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Roland Tepp
At the risk of causing some whitespace holy war, I would actually secont that sentiment. I am actually rather surprised at the level of dislike for a tab character among this crowd, because this tab character fits really well into the semantics of nesting/indentation. You can express a level

Re: [The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Ricky Clarkson
The problem is that if you, accidentally or otherwise, end up with a mixture of tabs and spaces for indentation, people with different tab sizes set see your code as spaghetti. It's easier to write a rule that detects and rejects tabs than it is to detect a bad mixture of tabs and spaces. In the

[The Java Posse] Re: Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Casper Bang
It's easier to write a rule that detects and rejects tabs than it is to detect a bad mixture of tabs and spaces.  In the latter, what would happen with: tab int[] x = {1, 2, 3, 4, 5, tab           6, 7, 8, 9, 10}; I would argue, that space characters has no place after a linebreak. They

[The Java Posse] Re: Android tablets not selling?

2011-05-18 Thread Phil
I was surprised to read some comments about the NVidia CEO interview in which he asserts that Android tables are not selling well because of their costs. He says that low-level product configuration should be WiFi only to reduce costs. That's a red herring to start with. The per-device cost

Re: [The Java Posse] Re: Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Ricky Clarkson
Then you end up with, say: tab int[] x = { tab tab 1, 2, 3, 4, 5, tab tab 6, 7, 8, 9, 10 }; which you can probably see promotes the structure of the code over its actual content. I used to think the same, but spending a while in a locked room with lisp cured me. -- Skype: ricky_clarkson

[The Java Posse] Re: How many characters do you use for indention?

2011-05-18 Thread Vince O'Sullivan
On May 18, 7:56 am, Casper Bang casper.b...@gmail.com wrote: (anyone who mentions they use tabs, please line up against the back wall) Bah if everyone just used a tab to signify a logical indentation level, your whole question becomes pointless - think about it for a second. Indentation

Re: [The Java Posse] Re: How many characters do you use for indention?

2011-05-18 Thread Josh Berry
On Wed, May 18, 2011 at 8:46 AM, Vince O'Sullivan vjosulli...@gmail.com wrote: On May 18, 7:56 am, Casper Bang casper.b...@gmail.com wrote: (anyone who mentions they use tabs, please line up against the back wall) Bah if everyone just used a tab to signify a logical indentation level, your

[The Java Posse] Re: Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Eric Jablow
On May 18, 5:45 am, Roland Tepp luol...@gmail.com wrote: At the risk of causing some whitespace holy war, I would actually secont that sentiment. Also - if everyone used tab for indentation, it would open up elastic tabstops http://nickgravgaard.com/elastictabstops/ and opening up. Also, to

Re: [The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Reinier Zwitserloot
The rule is easy. (A) A tab character may only appear in cases where it is prefixed by one of these three notions: Start-of-file, another tab, or a new line. Anywhere else: Flag it. (B) Spaces may not be prefixed by tabs or new lines or start-of-file (optional: unless they follow a number of

Re: [The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Ricky Clarkson
Your optional rule doesn't sound like something you can easily implement for, e.g., a commit hook. Can you specify that rule in your IDE? -- Skype: ricky_clarkson UK phone (forwards to Skype): 0161 408 5260 On Wed, May 18, 2011 at 10:17 AM, Reinier Zwitserloot reini...@gmail.comwrote: The

[The Java Posse] Re: Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Casper Bang
if you really must line up things in tables in code. Usually I just say: Write a text file and read it in in a static block instead, if that's what you need). Totally agree. Spending time on being a whitespace artist should be avoided, especially if it mangles semantic vs. logical scope.

Re: [The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Alexey Zinger
So what happens if you accept someone else's code, who was using the wrong number of spaces for indent and mix it with your code? Alexey From: Ricky Clarkson ricky.clark...@gmail.com To: javaposse@googlegroups.com Sent: Wed, May 18, 2011 6:44:06 AM Subject:

Re: [The Java Posse] Re: Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Alexey Zinger
The more I think about it, the more I like it. Given ODF standards, we should be able to whip something out with XSLT fairly easily. As a proof of concept, it could start as a generic preprocessor that gets fed different XSL files for different underlying compilers. Alexey

Re: [The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Ricky Clarkson
It'll get reformatted. -- Skype: ricky_clarkson UK phone (forwards to Skype): 0161 408 5260 On Wed, May 18, 2011 at 11:01 AM, Alexey Zinger inline_f...@yahoo.comwrote: So what happens if you accept someone else's code, who was using the wrong number of spaces for indent and mix it with your

Re: [The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Alexey Zinger
Then there's no problem with tabs either. Alexey From: Ricky Clarkson ricky.clark...@gmail.com To: javaposse@googlegroups.com Sent: Wed, May 18, 2011 12:13:09 PM Subject: Re: [The Java Posse] Vs: Re: How many characters do you use for indention? It'll get

Re: [The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Ricky Clarkson
It's easier to screw up formatting when incorporating code that uses tabs, because you might not realise it uses tabs. Only the person who uses a different tab size to your editor might realise. -- Skype: ricky_clarkson UK phone (forwards to Skype): 0161 408 5260 On Wed, May 18, 2011 at 1:26

Re: [The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Alexey Zinger
So you're saying the problem with tabs is that you might get a document that only looks right, but in reality it's using tabs, so that's the problem with tabs? Did I miss something? If you're gonna reformat a document using a syntax-aware editor, reformatting tabs to spaces is actually easier

Re: [The Java Posse] Re: Vs: Re: How many characters do you use for indention?

2011-05-18 Thread B Smith-Mannschott
On Wed, May 18, 2011 at 15:03, Eric Jablow erjab...@gmail.com wrote: On May 18, 5:45 am, Roland Tepp luol...@gmail.com wrote: At the risk of causing some whitespace holy war, I would actually secont that sentiment. Also - if everyone used tab for indentation, it would open up elastic

Re: [The Java Posse] Re: Android tablets not selling?

2011-05-18 Thread Steve Lewis
On Wed, May 18, 2011 at 4:29 AM, Phil p...@surfsoftconsulting.com wrote: will be a significant factor. The fact that Asus have chosen to price lower, and are selling out everything they can ship, lends some weight Agreed, also Asus has been very active in buying market share across multiple

[The Java Posse] Re: How many characters do you use for indention?

2011-05-18 Thread mgkimsal
On May 17, 2:54 pm, Chris Koerner chessm...@gmail.com wrote: (anyone who mentions they use tabs, please line up against the back wall) I can't speak specifically about your motivation, but I've talked to a number of no tabs zealots who are also big proponents of CSS, and advocate anyone who

Re: [The Java Posse] Vs: Re: How many characters do you use for indention?

2011-05-18 Thread Ricky Clarkson
The problem's not with tabs. A tab is a perfectly straightforward thing. The problem, like with null pointers, untyped languages, fast cars, Eclipse, etc., is with the operators. But yes, if you commit something that mixes tabs and spaces because you did a copy and paste job from some code you

[The Java Posse] Re: Android tablets not selling?

2011-05-18 Thread Karsten Silz
On May 18, 1:29 pm, Phil p...@surfsoftconsulting.com wrote: That's a red herring to start with. The per-device cost of adding 3G to the iPad was estimated at about $15. One extra chip, one extra aerial and a straightforward certification process. So what? Price here has more to do with what