Why singletons are excellent
2011 Rugsėjo 2 d.
This will be kind of a response to this blog post: http://blogs.msdn.com/b/scottdensmore/archive/2004/05/25/140827.aspx
Singletons are an excellent solution whenever system is non-scalable or a class performs a role of shepherd/manager. The former group can be exampled with a NIC in an embedded system. Classes belonging to latter group are by design instantiated once (if the design is proper).
Further comes explanation where In My Humble Opinion the author of the original post in MSDN is incorrect. I hope that between black and white readers might find their own whiter shade of pale.
Toliau »