There's a lot you can debate about optimizing code. Everybody will always have their own opinion as to whether a certain optimization is 'useful' or 'necessary'. I tend to lean towards the idea that if major optimizations are needed, then chances are the entire script needs to be rewritten, not just one or two bits. I am also very against so called 'optimizations' where people steal the chance to slip obfuscated code into production code. If you can't come back to an 'optimized' snippet of code a month or two after having 'optimized' it and immediately see what that code does, it shouldn't have been done in the first place. If you created this optimization, you shouldn't have to come back months later to copy and paste the snippet into SoPW and ask what it does!


In reply to Re: Golfing and Sprinting by Anonymous Monk
in thread Golfing and Sprinting by kvale

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, details, 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, summary, 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.