The singleton tag has no wiki summary.
0
votes
1answer
38 views
Is it reasonable to use a decorator to instantiate a singleton in Python?
Suppose I have a class like this:
class Foo(object):
# some code here
As it happens, Foo is a singleton. There are numerous ways to write singletons in Python, but most of them don't really ...
0
votes
0answers
29 views
Designing Document class for Doc Imaging - optional fields
I'm working on a project that processes many Documents.
A Document CAN have a Cover Sheet (if the first page is one)
A Document CAN have a Stub (if Document is large)
It matters whether or not a ...
0
votes
0answers
83 views
Using Singletons in JS with workers
I'm building a javascript application that does continuous drawing, but relies on asynchronous scripts in the background which also need to poll for events and write to "global variables". This got me ...
0
votes
0answers
258 views
Use a global variable, a singleton, or something else
Preface: I am working in PHP (Abandon hope all ye who enter here).
Background: There exists a large set of global functions in PHP, a number of which are miscellaneous system calls, like sleep (and ...