Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Are global variables "bad"?

by Your Mother (Archbishop)
on Apr 21, 2009 at 17:07 UTC ( [id://759057]=note: print w/replies, xml ) Need Help??


in reply to Are global variables "bad"?

What ELISHEVA said. I'd go further and say yes, they are bad; not always but more often than not. As samtregar mentioned, they often lead to action at a distance and that leads to debugging difficultly which leads to 100 wasted hours over time because the original dev wanted to save 1 or 2 up front by using a global or a singleton instead of something reusable.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-23 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found