Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Code Maintainability

by kyle (Abbot)
on Dec 03, 2008 at 23:01 UTC ( #727827=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    upchuck() if ! $healthy;
    
  2. or download this
    Exception::Of::Doom->throw( error => 'Detailed error messages are impo
    +rtant, especially when this error happens' ) if $oops;
    
  3. or download this
    upchuck() unless $healthy;  # doesn't sound right
    error() unless happiness_ensues();   # better?
    
  4. or download this
    if ( ! $healthy ) {
        upchuck();
        die;
    }
    
  5. or download this
    print STDERR join("\n", @lines), "\n";
    
  6. or download this
    print STDERR map { "$_\n" } @lines;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://727827]
help
Chatterbox?
[LanX]: ha ... just read an article saying that some US presidents in the past lost their nuclear codes
[LanX]: xD

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-01-20 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.