Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Tricking Our Egos

by Anonymous Monk
on Feb 16, 2001 at 08:49 UTC ( #58791=note: print w/ replies, xml ) Need Help??


in reply to Tricking Our Egos

The easiest trap to fall into when trying to figure out what's wrong with a piece of code is to look for all the things that are right with it. It goes something like this: "Okay, if $i is zero we'll get through this loop okay, ... the substitute will change the 'barf' in $string to 'arf' ... yeah ... and when it gets here it should print 77 ... right." This mental dialog always ends with, "Well, shoot, that should work!" If I ever find myself saying this, I know I need to back up and realize, "Hey, it doesn't work, that's why you're going through this in the first place!" That's usually enough to kick me into a different groove.


Comment on Re: Tricking Our Egos

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://58791]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2015-07-29 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls