I read a lot of posts from folks saying basically, "I have this thing that works, but there must be a more efficient solution..."

Every time I read that, I want to write a reply saying, "Instead of trying to make something that works run faster, go fix something that doesn't work."

I've been scripting for probably 10 years and I can count on one hand the number of times something actually had to be fast.

I can totally respect folks who just like fast code, as long as they're honest about themselves when they do it. It's part of what makes programming fun.

On the other hand, some folks seem to feel guilty when they write code that's not as fast as it could possibly ever be.

If someone totally new to programming were to ask me for advice, I think I'd say "performance is for suckers."

What does everyone think about that? Am I totally crazy?

--Pileofrogs

Update: Awesome responses! ++ To everyone! (Okay, I'll have to come back tomorrow when I have more votes...)

I like saying 'Performance is for suckers' to new programmers because it makes them stop and think for a minute. My point isn't that performance really is for suckers, but that it's a priority worth considering rather than just assuming it's the most important thing. (Yeah, I didn't make that point very well.) Mostly, it seems like there's a culture that says it must be fast always, and I think that's kind of dumb.

I know I've sacrificed stability and features for performance that wasn't really needed, and I feel like that's more normal than it should be...


In reply to Is Performance Overrated? by pileofrogs

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.