Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: The Boy Scout Rule

by Anonymous Monk
on Jan 25, 2015 at 19:56 UTC ( #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
Node Status?
node history
Node Type: note [id://1114462]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-04-19 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?