|
I don't see how Singletons would encourage bad design... I might have an application I'm writing, it has data on an organisation and its staff members. The data needs to be recovered from a database. I'd have a class called Organisation and a class called Staff. Since there is a single organisation, I'd like to use the Singleton model, whilst there is an unknown number of staff so for those I'd use the Model as my parent class. This gives me the security in knowing that whenever I get the organisation object I know I'm getting the only one that exists. This certainly helps if the object is stored with the User object and each time the program is invoked it is either created or recovered from the user object, I know that only one instance of the object will exist. Then again maybe I misunderstood your concerns. graeme. Mike Vincent wrote: On 6/27/05, David Zülke <[EMAIL PROTECTED]> wrote: |
_______________________________________________ agavi-dev mailing list [email protected] http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev
