All Questions
3 questions
1
vote
2
answers
364
views
Is singleton the right way to go in the case of a game?
I've been reading the top posts of stackoverflow and SE and all over the place it says how bad singletons are but I am unsure how to rewrite my code.
As of now I have two projects that bind into a ...
16
votes
3
answers
25k
views
Should a DAO be singleton or not?
I am developing a RESTful API and I think it is convenient to use DAOs for my resources because although I plan on just using memory to store them, I don't want to close a door to whoever is using my ...
1
vote
1
answer
409
views
Making more than one instance of factory that is supposed to be singleton
However, there are some classes that should have only one instance.
Sometimes they are factories, which you can use to create the other objects in the system.
If more than one factory exist, ...