in reply to Log::Log4perl and singleton design issue

Hi

When OO emrges in our programs it demands not to use the
globar variables. But there are lot of application that
would demand us the global memory. The solution to this is
not avoiding the singleton pattern but its in how do go
about in hadling these singleten objects.

One way to do this is have a small package and inherit all
other packages of your application from this package.
This package can be the base class of your whole application.
This is how we solved this issue in our old company.
But still the questions remains....

Performance or System design....??

As far as i am concerned one of these things has to be
scaped for the need of other if our application demands.
After all OO is for us to make our application look
simple.It all depends on the way we need our system to
behave.

Thanks
Sasi Kumar
  • Comment on Re: Log::Log4perl and singleton design issue