Yakkstr

I cry a little when I code in java

These two pieces of code do the same thing.

Java

Collection<String> output = Collections2.transform(cur.toArray(), new Function<DBObject, String>(){
  public String apply(final DBObject input){
    return input.toString();
  }
});
String o = Joiner.on(",").join(output);

Ruby

o = cur.map { |e| e.to_s }.join(",")
report |
starchini said 9 months ago ...

ooo ya, a lot more buttons to push with Java.

So whats that mean?

Join our friendly Yakkstr community in 1 Easy Step
  • Meet Like Minded People
  • Share your thoughts with others who share your interests
  • No assholes to deal with, we keep them out
Join Now by writing your first comment below


Related Posts
What goes up....
A combition of different things that are running through my MIND
5 comments
last by coffeebreak about 1 year ago
Longest Post in a While
This and that and that and this
1 comment
last by hegemone 12 months ago
May I Whine a Little?
There's a lot going on in my head tonight. Much of it frustrating.
7 comments
last by woman 11 months ago
Apparently I hold things in ~
I had to visit someone on Saturday that told me something I knew but needed to hear from, external to my significant circle of loved ones.
3 comments
last by lucyt over 1 year ago
So here's a little about my life
Here's some more about my life....
8 comments
last by phoeby about 1 year ago
I Am A Little Teapot/Sad Thought/Strange Thought
life
13 comments
last by wombat about 1 year ago
Leaking a Little Crazy
enough to let off some steam
13 comments
last by uniquely-learning over 1 year ago
A Little Break
from my daily worries
11 comments
last by uniquely-learning over 1 year ago
Why Do Women Cry?
The reason why.
6 comments
last by torrentdeheart over 1 year ago

Remember me

New? Sign up here.
ddonnell commented 3 months ago on
Why I don't use the JVM
amen linbsd read the rest
ddonnell commented 3 months ago on
Why I don't use the JVM
@jasonspak, I tried to do that, and I can't get it to use under 100MB. Permgen alone was close to read the rest
ddonnell commented 3 months ago on
Why I don't use the JVM
Hi anonymous. I should have reserved that username ;) PHP, Ruby, Python .... yeah, use one of these for web apps. It also bugs me that the JVM isn't as unix friendly as I would read the rest
ddonnell commented 10 months ago on
Get a deal a day
haha, thanks read the rest
ddonnell commented 10 months ago on
MIT Skip Lists Lecture
you can always ask here for read the rest
ddonnell commented 10 months ago on
MIT Skip Lists Lecture
It's entry level assuming some foundation. I forget the specifics, but I was required to take a certain amount of math before taking it, so if you go to college for it you'll be forced to take enough math before getting to these classes. Btw, I think the read the rest
ddonnell commented about 1 year ago on
OLPC: these are so cool
gr, youtube changed their embed code and it doesn't work on yakkstr. There is supposed to be a video there. [Here's the video read the rest
ddonnell commented about 1 year ago on
url-normalizer
hehe, it won't. It's for programmers to use. I might use it on this site for some far off ideas I have. I need to get the private posts working read the rest
ddonnell commented over 1 year ago on
James Toney vs. Randy Couture
here we go, fight about to read the rest
ddonnell commented over 1 year ago on
James Toney vs. Randy Couture
I don't see this fight being that great either way. There are only two possible options I see, toney catches randy and it's a short fight. Randy controls toney and finishes him quick. But, I'm really excited about the edgar v penn rematch, and the read the rest