SoftestPawn’s Weblog

Oh no, not another blog!

Singletons Are Good

Posted by softestpawn on May 29, 2008

Apologies for the redirect, but this article has been moved to Gruntled Engineer, where I discuss more engineery issues than the rather more random subjects here.

One Response to “Singletons Are Good”

  1. Why only logging? Why not Database connection? I have been using one database for my simple small CMS and I guess anybody, any fool like me, will go for a singleton. You are not going to again and again open a db connection for 2 queries at line number m and m+1. Its better to have a single connection and pass it over. That’s it. Its the benefit part. Now the coupling. Yes my user class is totally dependent on the database class. Anything wrong or any small change in mydb class means check user class also.
    The only point I can make is as de-normalization helps and so does singleton. 😉

Leave a reply to Kumar Chetan Sharma Cancel reply