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

Re^9: Perl Golf Ethics

by Jasper (Chaplain)
on Jan 08, 2007 at 23:54 UTC ( #593648=note: print w/replies, xml ) Need Help??

in reply to Re^8: Perl Golf Ethics
in thread Perl Golf Ethics

Andy, As one of the fellow spongs who didn't look for or find the magic formula, I feel I might be in a better position to commiserate. I've been playing at this perl golf for several years now, and sure, I've learned some tricks along the way. But mostly I play to the level of my abilities. If I come up with a good algorithm, I usually do well. In this case I did OK. In other contests I've done very badly.

I've taken a peek at your final answer, and it is short. There is nothing that strikes me as obvious as to where you can remove characters. Therefore, and I think this is the important bit, it's a bad algorithm.

I haven't had the time to look through all your solutions, from your first entry to the last one, but how many different algorithms did you try? Me, I tried it four or five different ways until I stumbled upon one that seemed shorter. Heck, I thought I was a freaking genius when I thought of y/IVXLC/XLCDM/ for multiply by ten. And having spent some time post-mortem with Ton's magic formula, I believe that I'd have only saved 3, maybe 4 (at a stretch) characters with it. The other parts of Ton's (and everyone who beat me) winning entry were the majority of the difference between him and me.

Of all the entries that beat you into 28th place, how many used the magic formula? Not as many as you seem to think. There are certainly a number of 'in the know' people (Yanick, Michael Wrenn, tybalt89, Honza - me!) who didn't use/find the magic formula. There are also people (experienced golfers, too) who did use it and didn't get within 40 characters of Ton.

Take a step back and think about how you sound by suggesting that your final position is far away from where you would have finished. Because it's probably not true.


p.s. sorry this is waaaay late in the day - someone only just pointed out this thread to me - perhaps if I'd kept an eye on perlmonks, I'd have done far better!

Replies are listed 'Best First'.
Re^10: Perl Golf Ethics
by petdance (Parson) on Jan 09, 2007 at 03:27 UTC
    think about how you sound by suggesting that your final position is far away from where you would have finished.

    I've said nothing of the sort.


      I've said nothing of the sort.

      you've implied it. On the one hand you claim to have enjoyed the contest while it was running, while you claim to have wasted your time, and have as much as said you wish you hadn't bothered. If I'm reading too much into what you've written, please ignore me.

      The impression you have been giving everyone is that you think you wasted your time because you didn't find the magic I-IX formula. I don't think anyone understands where you're coming from.

      I personally think the contest was biased against Ton. He'd discovered/invented the formula for another contest, and his solution was published. If that contest hadn't been run, he'd won by another three strokes!
        If I'm reading too much into what you've written, please ignore me.

        I would if not for you putting words in my mouth.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://593648]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2018-06-20 14:03 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.