Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Re: Creating 'universal' instances of objects?

by halley (Prior)
on Aug 04, 2003 at 16:12 UTC ( #280726=note: print w/replies, xml ) Need Help??

in reply to Re: Creating 'universal' instances of objects?
in thread Creating 'universal' instances of objects?

Even if current design suggests that the objects will be unique, it is still a good idea to implement such singleton classes with a single managed instance of that class. Class-oriented singleton resources would be more brittle and resistant to refactoring.

In the future he may choose to divide global.conf into server.conf and a number of foo-module.conf, and in that case, an object-backed singleton class easily graduates as more complex structures are needed.

[ e d @ h a l l e y . c c ]

  • Comment on Re: Re: Creating 'universal' instances of objects?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2016-10-22 18:56 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.