Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: RFC: Basic debugging checklist

by Your Mother (Bishop)
on Feb 18, 2009 at 20:54 UTC ( #744881=note: print w/replies, xml ) Need Help??

in reply to RFC: Basic debugging checklist

Regarding #4, it also seems there is a pretty wide consensus (someone will clobber me if I'm wrong) that Data::Dumper is at this point in time "considered harmful" and one should reach for Data::Dump (or even YAML or JSON) instead.

Replies are listed 'Best First'.
Re^2: RFC: Basic debugging checklist
by JavaFan (Canon) on Feb 19, 2009 at 00:01 UTC
    Consider yourself clobbered. Now, I'm the first to admit that the output of Data::Dumper is harder to read that YAML, but considering that most of the time I see programmers reach for Data::Dumper instead of any of the alternatives, I'm not inclined to agree on the "pretty wide consensus".

      You hit me in the ear!

      Sorry, bad choice of words. I meant "growing consensus" and I meant it among those who don't cargo cult. I've never even used Data::Dump but I've seen Data::Dumper mentioned quite pejoratively in comparisons lately. Data::Dumper's defaults are terrible (::Terse and ::Indent are usually necessary/desired) and using eval to bring the code back to life is, using this chestnut again so soon, "considered harmful."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://744881]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2018-05-22 12:55 GMT
Find Nodes?
    Voting Booth?