News for hackers. Stuff that matters.
Re:How to Parse Ruby by jshen on Friday February 08, 2013 @02:03AM (#5186679)
Your code doesn't do the same thing as mine. You need to start with an array of sentences.

Show the java code that does the same thing and it will be clear that the ruby is more readable.

Re:How to Parse Ruby by odenze on Friday February 08, 2013 @06:49AM (#5187357)
It will not be clear: You can replace the first line with the following two

  String[] sents = {"the quick", "the slow", "the blue"};
  Iterable<String> s = Splitter.on(" ").split(Joiner.on(" ").join(sents));
Re:How to Parse Ruby by jshen on Friday February 08, 2013 @10:14AM (#5188195)
Guava is nice, it makes java almost bearable.