Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Commonly accepted style guide?

by Anonymous Monk
on Sep 26, 2005 at 09:16 UTC ( #495037=note: print w/ replies, xml ) Need Help??


in reply to Re: Commonly accepted style guide?
in thread Commonly accepted style guide?

Any failure to use strict and warnings, or any use of no strict without a comment explaining why this is necessary.

Using 'no strict' without a comment is something you pay attention to, and I presume you flag it negatively? I disagree. I consider commenting the obvious as a sign of an immature or insecure coder. Commenting the obvious includes the classical:

i++; /* Increment i */
but doesn't stop with:
{ no strict 'refs'; *{$caller} = &{$something}; }
or
my @list = do {no warnings; qw /foo #bar baz,/};

Using backticks in void context. Or any other construct that returns a list, e.g., map

Nothing returns a list in void context. Lists are only returned in list context. And programmers who think that 'map' in void context creates a list internally are showing signs of not keeping up with modern Perl development. ;-).


Comment on Re^2: Commonly accepted style guide?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2014-09-18 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (116 votes), past polls