Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Yah. You've got a point. The best way to judge such a thing may be to have an "impartial" judge decide which one they like best.

Personaly, I like the idea of the various scored programing contests. Your bottles-of-beer question is simply a bad question. A better one would have read: write a function, bottles_of_beer, which takes a single parameter, the number of bottles to start with. It should return a string of the form "$n bottles of beer on the wall, $n bottles of beer. You take one down, you pass it around...\n$n-1 bottles of beer on the wall"..., where $n is the number passed in. It should end with the line "ENOBEER", after you've passed around the last beer.

"Winners" will be programs that do it in the fewest number of characters (as mesured by ls -l, on a one-character-newline system), the fewest opcodes (as mesured by B::Concise), and the shortest running time (on my system).

(In fact, can anybody find issue with this form of rules? I might write up a Tutorial on golf contests... even though I don't purticularly like writing it. (I might like doing perl racing, or minimal-opcode-programing (NEED BETTER NAME!), though.) Hm. Two more scoring methods just crossed my mind: B::Size (more then number of opcodes, since it also includes info on constants), and the size of the output of B::Assemble (more then B::Size, less then B::Size? Different in any way the B::Size? I don't know)

Anyway, I find the topic very intersting, and am probably going to ponder mroe on it. But now, I'm going to bed.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).


In reply to Re: Re: Re: Re: Re: Beyond Golf - reading between the tokens by theorbtwo
in thread Beyond Golf - reading between the tokens by Aristotle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (4)
    As of 2019-06-24 23:22 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Is there a future for codeless software?



      Results (100 votes). Check out past polls.

      Notices?