ACCU Home page ACCU Conference Page
Search Contact us ACCU at Flickr ACCU at GitHib ACCU at Facebook ACCU at Linked-in ACCU at Twitter Skip Navigation

pinLetter to the Editor(s)

Overload Journal #58 - Dec 2003 + Letters to the Editor   Author: Jeff Daudel

To the Editor,

There are definitely pros and cons of singleton usage, depending on whether they're used properly or abused. I believe both sides bring valid points to the argument. In modern generic programming, I have experienced great benefits from them.

I have worked on several large-scale projects that have employed a unified singleton system approach. On one such project, we currently have 234 singleton instances. These include such things as specific program state and task objects. The dependencies and life-time issue for all 234 instances are automatically handled for us. We can easily add, and change these instances without fear of a system breakage. It's similar to a free high-performance garbage collection at the architectural level.

Prior to working on such large-scale frameworks without such a system, maintenance work has been a nightmare, even for the outstandingly talented developers. The alleviation has done wonders for preventing memory leaks and keeping our project shutting down properly. For anyone that is interested in this architectural technique, all the necessary code is available. I've posted an article that shows a simple example of how to use a unified singleton system: http://daudel.org/code/singleton_usage.html (will post soon)

Overload Journal #58 - Dec 2003 + Letters to the Editor