Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl best practices fanatism

by Anonymous Monk
on Jan 02, 2009 at 01:23 UTC ( #733690=note: print w/ replies, xml ) Need Help??


in reply to Perl best practices fanatism

I hope Perl::Critic will save us from the C-style programmers. I frequently come across some module or program that spends dozens of lines needlessly predeclaring variables. I wish there was a policy for detecting that. The closest I've found is Perl::Critic::Policy::Variables::ProhibitUselessInitialization.


Comment on Re: Perl best practices fanatism
Re^2: Perl best practices fanatism
by Anonymous Monk on Jul 04, 2009 at 07:51 UTC
    I frequently come across some module or program that spends dozens of lines needlessly predeclaring variables.

    Got an example? By what criteria is it needless? Code evolves sometimes, sometimes defaults change, what you end up is with a lot of predeclaring, none of it is needless.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-04-19 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls