Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Some of the best debugging techniques are those that help us debug our own thinking.

One of my favorites is a simple variant on the standard dictum that you don't really understand a problem unless you've thought of at least three ways to solve it.

Before debugging an anomaly in a black box, think of at least three logical explanations for the behavior you're seeing.
The simple act of pausing to think this through can open up one's mind to possibilities that might otherwise be missed in a focused hunt for one particular cause. With multiple explanations in hand, we're in a better position to prepare debugging strategies. The second or third potential cause we think of might suggest a simple debugging approach that can save hours when compared to our initial impulse.

Another beauty of this technique is that it works on people.

People as black boxes? Sure, why not? We can't see others' inner processes, we can only observe some of the input, and some of the output.

The next time you get into an anomalous interaction with another person, before you react according to your first instinct, try this

Assume that what they're saying is true from their experience and perspective. Think of at least three things that might be true to them that would explain what you're observing.
When we pause to ask this question, in reality we're debugging your own thinking and biases.

Try this the next time you get into an interaction that confuses you, and see if you don't discover new options. For (safe) practice, try it the next time you run into a weird SoPW post.


In reply to On Debugging People by dws

Title:
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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-16 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found