Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I had one of those moments about two days ago where you have an error so confusingly dumb you just know you've done something stupid, and when you do find it you know you'll kick yourself.

I keep two development enviroments for a chunk of web software I've been working on, one locally and one remotely on the company dev server.
I'm working on my local copy (faster SSHing) and change a very simple feature, it was something related to what a function printed back out into the HTML, and I set the monster running - and nothing. No changes.
I go and look at the code again... Confused. So I stick a 'print STDERR "Value $var\n"' in there, to make sure my var is what I expect it to be, run the CGI again via the browser... Nada. Nothing in the error log. I think about this for a bit and decide that, yes, I've done something really dumb.
I just can't see it. I don't get it... So, I walk away for 15 minutes and take a break.

Return. Think. Think. Look at the access logs - and its not even being touched?
Decide I'd better double check the URL... Sure enough. I had somehow switched over accidentally from the local copy to the dev copy I hadn't been working on.

So banal when you work it out. So damned frustrating when you're right there wondering what kind of moronic cock-up you've just made.

-- Alexander Widdlemouse undid his bellybutton and his bum dropped off --

In reply to Re: (OT) What Was Your Most Bone-headed Programming Error? by JPaul
in thread (OT) What Was Your Most Bone-headed Programming Error? by Wally Hartshorn

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2023-09-23 01:06 GMT
Find Nodes?
    Voting Booth?

    No recent polls found