Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: single instance shared with module

by adrianh (Chancellor)
on Sep 16, 2002 at 22:52 UTC ( [id://198390]=note: print w/replies, xml ) Need Help??


in reply to Re: single instance shared with module
in thread single instance shared with module

Be careful when using singletons. They are often a sign that you need to rethink a design. Then can encourage close-coupling of objects and become global variables by another name.

There is a nice developerworks article on the subject. Even if you can't read Java it's worth a once over.

That said - logging objects is one of the places that it's probably justified.... so I guess I'll just shutup and go away ;-)

  • Comment on Re^2: single instance shared with module

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-25 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found