3 ms·
I depends on the complexity of your application, sure it could be easy, it could also be a nightmare. People make the same arguments about using interfaces (th
by robmcm 13y ago
I depends on the complexity of your application, sure it could be easy, it could also be a nightmare.
People make the same arguments about using interfaces (think Java not Objective-C ones), they are only useful when you need them, but almost all of the time it's easier to do it in advance than at a later date.
At the end of the day it's your call as the architect of your application. If you can convince yourself using a singleton is a better fit that another method go for it, chances are you'll know your application better than a one of the GOF.
If it then trips you up down the line, you learn from it and revise your thinking the next time you face this problem.