P
Peter Judge
Guest
Singleton just means “one and only one running at a time”. Nothing more. The static-class-property-named-instance is just one way of making sure there’s only one instance and of getting access to it – and to my mind arguably the * worst * way of doing it. I totally agree with Mike’s arguments and also that something like a service manager is a far better way of dealing with this. Yes, it’s more complex, and more code, and usually more abstract/generic. BUT the benefits (to me) far outweigh the costs.
Continue reading...
Continue reading...