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.

About these ads

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 57 other followers

%d bloggers like this: