Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: The Boy Scout Rule

by Anonymous Monk
on Jan 25, 2015 at 19:56 UTC ( [id://1114462]=note: print w/replies, xml ) Need Help??


in reply to The Boy Scout Rule

What would you have done?

I wouldn't write this  $liststr ( $ports[1], $ports[2] )

I'd write this instead  find => [ map { "port = $_ " } $config =~ m{(\d+)}g ],

Why? I don't see any benefit to introduce two vars and a set of "magic numbers" (yes misusing the term I know)

Also, I'd never let  desc => "# Test 1", remain, testing modules number tests , humans should name them , so "find the ports" or "find four ports" or "find four farts"

 

FWiW, I've heard of "Always leave the campground cleaner than you found it" but AFAIK its not a Boy Scouts rule

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1114462]
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: (4)
As of 2024-03-29 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found