Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Is it me?

by QM (Parson)
on Sep 15, 2005 at 18:54 UTC ( [id://492380]=note: print w/replies, xml ) Need Help??


in reply to Re: Is it me?
in thread Is it me?

...is there a reason to leave the use strict (or warnings) turned on?
Flip that around -- why would you turn it off? If you can't justify turning it off, then it should stay on.

Brainstorming here, possible reasons to turn strict and warnings off:

Speed: Not performing all of those compile- and run-time checks is bound to improve speed. Only benchmarking will tell if it's a real gain or not.

Confusing users with warning messages: If code spits out warning messages, it should be for a good reason, and it should be meaningful to the user. For example, if the file doesn't exist, that's something the user should understand. If the Beeblebrox is in Ratzafratza, then maybe the message should be changed to something like:

The Beeblebrox is in Ratzafratza. This should never happen. Please contact the maintainer of this script.
If your code sometimes innocuously spits out warnings that you know don't make any difference, for maintenance reasons you are better off to use no warnings around the offending statement, rather than turn off warnings everywhere.

Laziness: OK, I'm not sure how this would apply.

Hubris: Umm, I'm really not sure how this would apply.

Any others?

-QM
--
Quantum Mechanics: The dreams stuff is made of

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found