1
vote
1answer
270 views

JavaScript Singletons and Module Pattern [closed]

Is there a preferred way of doing what I describe here. I want to namespace my JavaScript code and use the Singleton Pattern so that only one instance of my JavaScript app exists. I have seen two ...
2
votes
1answer
145 views

Singleton has logic and state, and logic has state

------edit--------- note: this is for a MUD client, so the commands are issued to the MUD game server -----end edit-------- For an overview, here's the structure of the project: ...
3
votes
1answer
263 views

A parent class, a singleton subclass, and a subclass uses a builder [closed]

There are three classes and an interface. The parent class is called MobileSignal. It contains info about mobile signal. E.g., CID, LAC, device ID, MCC, user ...
1
vote
1answer
677 views

Why is android.app.Application not singleton by default [closed]

In many Android applications which I have found online or written myself, there is an application class like this: ...
2
votes
2answers
232 views

best way to use singleton [closed]

I know 3 ways for using singleton in our code and I want to know which one is the best way and you prefer more. The first is to have a Singleton class and every classes that want to be singleton ...
4
votes
2answers
727 views

Three-tier application with singleton pattern [closed]

I am creating a 3-Tier Windows Forms Application. Questions Am I using the right architecture, or can you suggest a better approach? Is there any way to make the base class be a Singleton? Is ...
8
votes
1answer
745 views

JavaScript Boilerplate - Review comments required

I am in between to create JavaScript Boilerplate (collection of best practices around) for low/medium complex project and will host on GitHub in sometime once finalized it. Have divided the ...
-1
votes
1answer
60 views

adding APL logger to an application [closed]

I have an application (Legacy code) that contains interface Icomponent with save() methods and many classes that implement it. ...
4
votes
1answer
2k views

Singleton class extending a parent class to utilise shared functionality

I have a singleton class which extends from an abstract java class. Two singleton classes extend from ItemImageThreadManager, the reason for this is to use shared ...