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

Re: Perl best practices fanatism

by Anonymous Monk
on Jan 02, 2009 at 01:23 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://733690]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2024-03-28 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found