For me, they both lead to the same "end result"...non-working code.

But the difference between the two, as moritz conveys well, is profound: in the first case a simple whack to forehead and few keystrokes solves the problem, in the latter it takes hours of my time to figure out and typically hours more to resolve.

In the balance I have been blessed with far more of the "silly mistakes" than of the "programming mistakes". That is *not* because I'm a good programmer (not by any means), rather because I fret so much and stew so much over everything I code that I end up mentally walking though the code over and over before I commit much of it to the computer and then I tend to take almost every small but significant code segment (especially ones that I'm not sure if I've got the right strategy or constructs) and try them multiple ways on their own. A lot of work for what arguably is not much payoff. But for me, it is so painful to track down and figure out my programming errors that I'd rather suffer the pain of my strategy to my alternative.

I am so envious of how most all programmers can just "get it right the first time" (or nearly the "first time").

UPDATE: Sorry, I typed moritz when I meant wol. See..."silly mistakes". My bad. Sorry wol. Also, having just gotten back from 3 weeks of vacation, I can't remember the syntax for "bolding" this update is not in good form. And there isn't a "preview" with an update. Please forgive me.

ack Albuquerque, NM

In reply to Re^2: Avoiding silly programming mistakes by ack
in thread Avoiding silly programming mistakes by missingthepoint

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.