Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: The golf course looks great, my swing feels good, I like my chances (Part II)

by ambrus (Abbot)
on May 01, 2009 at 10:32 UTC ( #761252=note: print w/replies, xml ) Need Help??

in reply to The golf course looks great, my swing feels good, I like my chances (Part II)

You know, it doesn't really surprise me that perl isn't always optimal for golf. I've seen it in action in that fibonacci golf tingy at Re: Fibo Golf challenge on 3 monkeys and (OT) Fibonacci numbers in Ruby - final shot - 24 chars etc. Also, when I write one-liners, which I do a lot, and I don't golf on purpose, the ruby ones always turn out to be shorter than the perl ones, only the ruby ones get hard to manage earlier when they grow. Ruby just has a larger, better standard library for basic things, but cpan wins when you need more complicated stuff like xml parsing.

As for ruby,

  • Comment on Re: The golf course looks great, my swing feels good, I like my chances (Part II)

Replies are listed 'Best First'.
Re^2: The golf course looks great, my swing feels good, I like my chances (Part II)
by eyepopslikeamosquito (Chancellor) on May 02, 2009 at 00:59 UTC

    Though I'll give a more detailed analysis in my next article, I just did a quick count of the last ten codegolf games. Ruby and Perl always finished first and second in code length: Perl won 6 times, Ruby 4 times. As for the longest solutions, it was: PHP 7 times, Python 3 times. That agrees with my impression when playing these games: Perl and Ruby are (often quite excitingly) vieing for the Silver Cup, while Python and PHP are battling for the wooden spoon. What surprised me enormously is popularity, measured by number of entries: Python 5, Ruby 4, Perl 1. It seems that golf is more popular in Python than Perl nowadays. That shocked me, because four years ago the top google hit for "Python golf" was a lovely pair of Python skin ladies golf shoes. :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://761252]
[Your Mother]: Sounds right.
[Corion]: Your Mother: I think that that is basically the origin story. Flat earth started as trolling, but then the real believers drove out the trolls
LanX is pretty brown in summer
[Your Mother]: Though a bad match for the OP in question here. :P
[Corion]: Your Mother: Yeah
[Your Mother]: Americans are still pumping out video games where you get to slaughter as many Germans as you have the GPU for... It has always struck me as odd that this particular case seems fine to people. :\
[LanX]: yep heard the same origin story
[Your Mother]: I like it. I tottered on going into hucksterism because I feel like the world deserves it.
[LanX]: he ... we have a movement here called Anti-Germans based on this
[Corion]: Your Mother: I think that's because (in the west) the Nazi-Germans are recognized as universally evil. Of course, you could do some number games to calculate other measures of evil than "historic losers of second world war" to come up with other evils:)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (18)
As of 2018-03-19 13:39 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.