tag:blogger.com,1999:blog-32350163.post9105561601573779455..comments2023-12-26T19:10:50.230+08:00Comments on ÇÖÐÊSHËþHÈRD's Garbage Collector: Singleton Vs Staticcodeshepherdhttp://www.blogger.com/profile/14800752599316075969noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-32350163.post-75627337730355888912007-11-14T23:27:00.000+08:002007-11-14T23:27:00.000+08:00I talk about that very thing in one of my videos. ...I talk about that very thing in one of my videos. Pools are about the only thing you'd ever want as few instances as possible going. But singleton is misused more often than not.<BR/><BR/>So what of singletons? Are they really useless? I would implement them as follows: exception in debug mode, singleton in production mode. This makes the singleton something you can fall-back on, while forcing you while you're coding to do things right.<BR/><BR/>-codingkriggsMichel Parisienhttps://www.blogger.com/profile/16363456979757632132noreply@blogger.com