Re: [The Java Posse] File.separator question

2010-12-29 Thread Cédric Beust ♔
Just because it works on all OS today doesn't mean it will always be the case. For example, just over the past few years, two operating systems have emerged with "novel" ways of viewing the file system (Android and iOS). I don't think hardcoding '/' instead of using File.separatorChar is worth th

[The Java Posse] Re: File.separator question

2010-12-29 Thread Augusto Sellhorn
File.separator is portable, / is not, ugly or not always opt for the more portable option. For example, this code; --- import java.io.*; public class FileSeparator { public static void main(String[] argv)

Re: [The Java Posse] Re: File.separator question

2010-12-29 Thread Kevin Wright
One thing I will say, it'll *really* annoy anyone trying to do any kind of text processing against a log file that contains the "wrong" separator... Use / by all means, but replace it with the system default before using the path. In Java, I tend to write a small normalisePath function or some suc

Re: [The Java Posse] Re: File.separator question

2010-12-29 Thread phil swenson
IMO if you agree that "/" works in all relevant cases, then using a new constant doesn't make any more sense than saying a comma separated list should be build using a "Punctuation.COMMA" constant. Or my name should start with a "Letter.P" constant. Just my opinion, Letter.P + Letter.H + Letter.

Re: [The Java Posse] Re: File.separator question

2010-12-29 Thread Rob Ross
I think you'd want to use "File.separator" instead of hard coding "/" for the same reasons constants are better than hard-coded values in general. It captures the semantic context of the constant value, for one thing. It's clear that you intend to use a file separator character in that context.

[The Java Posse] Re: File.separator question

2010-12-29 Thread Christian Catchpole
Yeah, that's my experience. You might need it if you are building paths for display or whatever. There might be some other weird conditions where you might need it (edit or building existing paths). But for something simple like new File("./path/file"); I can't see why you would need the File.sep

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread Rob Ross
I think the logic in the article is backward. I agree that in order for Google to continue as a major player in the click-through ad business, they need to dominate the hand-held market. But the fact they "need to dominate the hand-held market" has absolutely no bearing on whether they will succ

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread work only
> > Here is another stilly excerpt: > "To him, the Apple ecosystem is not “open” enough for his portfolio > companies to reach sufficient scale for lucrative exits." > > > Apple has more than $50 billion in the bank, so obviously, their model is > plenty lucrative. > > > Filed in the "stupid" ca

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread work only
Hi Dick "Android is winning because it's free" I think Kontra meant that because Android is free, handset manufacturers don't have to spend much time and money on good phone software they have Android and its free :), thats why it will win. Not really to do with cost of the phone! On Tue, De

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread work only
great feedback from you all. But still think it will sum up Google 100%. I don't understand why people are so easy going about Google data retention! Anyways :) On Wed, Dec 29, 2010 at 9:08 AM, phil swenson wrote: > I too thought that comment was dumb.  Right now a lot more money is > being

Re: [The Java Posse] Re: roundup 2011 - noob questions

2010-12-29 Thread Matthew Kerle
sorry for the spam, I'm going to copy-pasta some of my googling and assumptions here for people to correct and discuss... I'm assuming people will be choosing accommodation like something on this page: http://www.completesite.com/staycrestedbutte/page.cfm?pageid=1482¢ralressiteid=1¢ralreslodgingty

[The Java Posse] File.separator question

2010-12-29 Thread phil swenson
I find code that uses the "File.separator" field irritating. It makes the code uglier and best I can tell "/" works everywhere, including windows. Does anyone know if there is a reason to use File.separator instead of just "/"? My guess is unless you are writing java code that writes to a .bat f

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread phil swenson
I too thought that comment was dumb. Right now a lot more money is being made by developing for iOS than Android, so this comment doesn't make sense... I found the whole article just weird. 2010/12/29 Cédric Beust ♔ : > > > On Wed, Dec 29, 2010 at 2:15 AM, Moandji Ezana wrote: >> >> The article

Re: [The Java Posse] Re: roundup 2011 - noob questions

2010-12-29 Thread Matthew Kerle
sorry, another n00b question here... I just paid my rego for the roundup, and will be coming from a fair way away (crocodile dundee country, literally, if that means anything to you...). I've got the same question about meeting up to ride share from Denver and find a place in a share-house. Financ

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread Cédric Beust ♔
On Wed, Dec 29, 2010 at 2:15 AM, Moandji Ezana wrote: > The article doesn't make much sense, to me. For example: Here is another stilly excerpt: "To him, the Apple ecosystem is not “open” enough for his portfolio companies to reach sufficient scale for lucrative exits." Apple has more than $5

[The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread Blanford
-1 on this article. This is an example of opinionated garbage. -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javapo...@googlegroups.com. To unsubscribe from this group, send email to javaposse+unsubscr.

[The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread Augusto Sellhorn
Hi Paul, thanks for sharing but the article is mostly garbage. I actually think Google has done a great job in the usability department for apps like Google Maps, Gmail and Chrome*. This idea that only Apple can do good UX is quite honestly nonsense, just look at iTunes and Quicktime on Windows,

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread Kevin Wright
On 29 December 2010 10:47, wrote: > > Sent from my BlackBerry® wireless device > > This one's for you: http://www.csectioncomics.com/2010/11/iphone-vs-android-vs-blackberry.html > -Original Message- > From: Kirk > Sender: javaposse@googlegroups.com > Date: Wed, 29 Dec 2010 10:46:29 >

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread shainnif
Sent from my BlackBerry® wireless device -Original Message- From: Kirk Sender: javaposse@googlegroups.com Date: Wed, 29 Dec 2010 10:46:29 To: Reply-To: javaposse@googlegroups.com Subject: Re: [The Java Posse] Re: GREAT READ - SO TRUE! +1, Android is winning because it's free, not as i

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread Moandji Ezana
On 29 Dec 2010 07:21, "work only" wrote: > Google is just about DATA and selling ads and really don't care about UI and UX. Sure, Google Search, Chrome, Gmail, Earth, Maps, Sky Map, etc. are all unbearably horrible to use. The article doesn't make much sense, to me. For example: "As business mo

Re: [The Java Posse] Re: GREAT READ - SO TRUE!

2010-12-29 Thread Kirk
+1, Android is winning because it's free, not as in beer. Kirk On Dec 29, 2010, at 3:09 AM, Dick Wall wrote: > I find the whole premise of his argument to be eminently disprovable. The > whole thrust of the article seems to be that Android is winning because it's > free? It's easy to see that