Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Perl Golf Ethics

by petdance (Parson)
on Jan 03, 2007 at 02:55 UTC ( [id://592688]=note: print w/replies, xml ) Need Help??


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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^5: Perl Golf Ethics
by eyepopslikeamosquito (Archbishop) on Jan 03, 2007 at 03:38 UTC

    it rankles me that I spent over a week on a contest that I thought was a challenge of cleverness and coding skill, not research and being in-the-know
    Sorry Andy, but that's rubbish. With more cleverness and coding skill you could have easily gone 50 strokes lower, as, for example, ambrus did -- he posted a 137 in just one day, with little prior golfing experience and without knowing Ton's magic algorithm.

      I'm not saying that I couldn't have done better. I'm saying that the key to actually winning was happening to know that there was a secret.

        the key to actually winning was happening to know that there was a secret
        It wasn't a secret to the winner. ;-) So I think justice was served there. And who can prove that Ton's magic formula is the final word? It's just possible someone might have invented a more magical formula than Ton and out-Ton-ed Ton. I know I tried. :-) Update: it turns out a more magical formula was indeed available all along!

        Seriously though, I agree with you that it was unfortunate that Fonality chose a problem where knowing of a previous similar golf gave a significant advantage. They didn't do it on purpose and I'm sure if they'd have known, they would have set a different problem. Having said that, I still enjoyed golfing on the non-magic-formula parts of the problem and found that to be challenging-in-the-extreme ... to the point of melting my brain at times. :-)

        A reply falls below the community's threshold of quality. You may see it by logging in.
        No actually. There was a second way of winning: make up your own secret. Nothing stops anyone from thinking of the magic formula for himself. It's also perfectly possible there is an even better way to go from number to roman that nobody discovered yet.

        And if a person would also have found the magic formula if he hadn't known the existing one, I don't think you can say he got an unfair advantage from it. I know I would have found it, and Juho might or might not have, but at least he has come up with magic formulas before. And third place was easily possible without the magic formula.

        And let's be very clear that all this was an accident. When making up golf challenges, one tries very hard to come up with new ones where old golfs cannot be reused. Nobody wants a perl golf where the real work consists of searching the web instead of programming.

Re^5: Perl Golf Ethics
by runrig (Abbot) on Jan 04, 2007 at 02:00 UTC

    I spent 3 all nighters, and then some, coming up with my answer, getting down to 203, and enjoyed the time I spent on it. I wondered (but then gave up) about getting even a t-shirt out of it. Then I saw this thread and eventually found ton's code, and half an answer to the problem. And had some more fun trying to golf down the other half. My daughter even helped in choosing characters to use for variable names ("try a sqiggle there...")...I told her she could have the t-shirt if I won :-)

    Without ton's code, I would have gotten 31st, which would still have been a pretty darn respectable position, and yes, you would have beaten me(28th!), and my hat's off to you for that, but neither of us would have won a prize. I do wonder how many used ton's code (or some other from the same source), and how we all would have done if that were not the case (it's all published, so someone could pretty easily figure it out). I am grateful to PerlMonks though, for the leg up :-) I'm sorry you feel it was a waste of time :-(

    I really wish there could be a contest for good code, based on efficiency, maintainability, etc, but then of course it wouldn't be as easy to score :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://592688]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-19 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found