Efficient way to implement singleton pattern in Java?
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label singleton. Show all posts
Showing posts with label singleton. Show all posts
Sunday, June 10, 2012
Efficient way to implement singleton pattern in Java
Wednesday, May 16, 2012
Eliminating Singletons
I've been doing a lot of reading about how using singleton classes is becoming bad practice in programming due to hidden dependencies, hard to test etc etc.
Tuesday, May 15, 2012
Static methods: are they still bad considering PHP 5.3 late static binding?
If you search on the reasons why static methods are bad the first thing you find it is because you can't override it when you are unit testing.
Tuesday, April 10, 2012
Short hand for [[UIApplication sharedApplication] delegate]?
I stored global variables in my AppDelegate and access them by:
Subscribe to:
Posts (Atom)