I mostly agree with your post, and I also agree with most of the responses I've seen. I'm quite enjoying this discussion; thanks for that. There's one thing at the end of your post that I haven't seen addressed, though:

if there are two ways to do something, and one costs less than the other and they are otherwise equal, use the one that uses less

This is pretty clearly true, but I have to wonder how often two things are "otherwise equal." In my experience, there's almost always a tradeoff. Other replies have mentioned specific tradeoffs and examples, but I think it's also good to keep the general idea in mind, and keep an eye open to the balance involved in these kind of decisions.


In reply to Re: Optimisation isn't a dirty word. by revdiablo
in thread Optimisation isn't a dirty word. by BrowserUk

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.