vendredi 6 mars 2015

Should I use one singleton for different purposes?

Ok, stackoverflow.

I've got to use singleton for database and for internet-processing. Is it a good practice to use one singleton for these (and have a mess in my singleton class) or two different singletons (and duplicate some singleton code).

Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire