Bugs. Don't you hate 'em? Pesky typos, documentation mis-reading, late-night algorithm confusion...

The ones I hate most of all though are all those bugs in perl (or Linux, or Windows, or MySQL). You know the ones. When you've tried everything to get your code to work, but to no avail. You know *your* code is right - heck - you were there when you wrote it - it's not like the other guy has messed up *your* source...so it must be a problem with the OS/language/DBMS/CPAN module/Sunspot-activity/whatever.

Having recently attempted to show a fellow monk this was *not* the case, it reminded me of (a) just how long it took for me to learn that it was almost always my code that had the problem, and (b) how many times I'd tried to teach others what I'd learnt.

Fair enough - there *are* bugs in just about every OS/DMBS/etc. you could point to...most of them well documented, or so obscure that the chance of you hitting them is minute. (Occasionally, in earlier times, these could even be a 'feature'...C64 sprites-in-the-border sprint to mind) What many programmers forget though is that the baseline code they're sitting on top of has probably been run billions of times before without a problem, while *their* code hasn't.

I suspect it's a rites-of-passage thing. After $x years learning to perform the task, it takes $y years to learn that $x was just the beginning, and it then takes $z years... etc. (I was going to attempt some contrived '$x += $y' recursive thing, but you get the idea <g>). My favourite definition of 'getting old' is 'stopping wanting to learn' - I hope never to get old myself, but unfortunately I know some people who got old at 14.

Most mystical tradition teaches that ego-loss is a precursor to illumination, and a certain degree of this is always necessary in order to grow, as a programmer or otherwise. It's always hard to admit that one makes mistakes, but until you get into the habit of looking on your own doorstep first, it'll take a lot longer to find them.

Ben - ever an initiate, regardless of XP :)


In reply to It's your code... by benn

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.