Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Tricking Our Egos

by arhuman (Vicar)
on Feb 15, 2001 at 15:13 UTC ( #58599=note: print w/ replies, xml ) Need Help??


in reply to Tricking Our Egos


Interesting point of view, especially the 'psychological' aspect ('fever' excuse).

And even If I'm sure it works, for my part I rather use a methodical approach :

1) Don't assume everything even OBVIOUS things
2) Find where the code begin to diverge from what is expected.
(I use a kind of dichotomic process with print to ensure that the values produced are those expected until I find the point where it begins to mess)
3) print is the coder's friend.
print everything possible during each step around the spot where you think the problem is...

But as I've discovered that the psychological aspect is VERY important.
I try to handle it like a challenge (finding bugs IS A GOAL); I've decided that coding with bug is normal(ie: I'm normal ;-) and that finding bug quickly is a skill...
This used with my formal method helps me to debug my code with pleasure (I'm improving my skills) and without a 'ego lock'...

As you see even if our excuse (for not being 'guilty' of finding a bug) is different the point is that we only have to manage to believe it, to prevent 'ego lock'...

Sorry but my poor english doesn't allow me to translate 'ego lock' efficiently, anyone got an idea?


Comment on Re: Tricking Our Egos
Select or Download Code
Re: Re: Tricking Our Egos
by petral (Curate) on Feb 16, 2001 at 07:42 UTC
    'ego lock' is great. Maybe 'blinded by ego' or something would be more conventional, but it would not be an improvement.

    p

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-11-23 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (126 votes), past polls