Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Replacing warn/die with carp/croak?

by fenLisesi (Priest)
on Oct 05, 2007 at 08:45 UTC ( [id://642854]=note: print w/replies, xml ) Need Help??


in reply to Re: Replacing warn/die with carp/croak?
in thread Replacing warn/die with carp/croak?

Evalitis [ee-vuh-lie-tis]: Sounds like a disease, but actually a good thing. Also see: suffrage. DISCUSSION: Don't be afraid to die (or croak). Let them eval you. That will lead to more maintainable code. </word-of-wisdom-from-fenLisesi-the-quack>

Replies are listed 'Best First'.
Re^3: Replacing warn/die with carp/croak?
by shmem (Chancellor) on Oct 05, 2007 at 08:56 UTC
    Let them eval you. That will lead to more maintainable code.

    A bold statement. Please expand your reasoning - why would them having to eval me make their code more maintainable? or mine, for that matter?

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      Man, I was trying to avoid the grand-statement effect by calling myself a quack, truly yours, but you called it. OK, well, I think being death prone helps:
      • the module author by making the module code simpler
      • the user in the long term by forcing him to be explicit about what he wants to do with the errors
      • the user's user by making it likelier that the user will provide his own error messages, which will probably make more sense to the user's user.

      I am here to learn, though, not teach, which I couldn't even if I wanted to, so I am eager to hear your response, shmem, and those of other wise monks. Cheers.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-19 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found