Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Re: Quick Dumper

by liz (Monsignor)
on Dec 03, 2003 at 13:49 UTC ( #311897=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Quick Dumper
in thread Quick Dumper

$obj->dump if $obj->can( 'dump' )

Actually, I wouldn't do that, since you want the debug code removed from your source when running in production. So, by not loading "dump.pm" while in production, your program would bomb because the "dump" method no longer exists, forcing you to either remove or disable the line.

Now, if we would have real assertions, this would be different.

Liz

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://311897]
help
Chatterbox?
[Corion]: marto: Aah ;) Yeah - I guess I'll make the first changes to the old module, by extending its test suite to be more lenient, and then the switch to the new results should still pass the test suite :-D

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-07-16 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (333 votes). Check out past polls.

    Notices?