« first day (89 days earlier)      last day (804 days later) » 

user142019
3:54 AM
@Chad Java programmers are too dumb to understand type inference so they think it's dynamic typing and they think dynamic typing is bad.
 
10:07 AM
0
Q: Define a Zend Model as Singleton

AminesrineI want to put my Zend Model as Singleton, so I have done this: class Social_Model_DbTable_Dossier extends Zend_Db_Table_Abstract { private static $_instance; public static function GetInstance() { if (!self::$_instance instanceof self) { self::$_instance = new self(); } ret...

 
 
9 hours later…
7:15 PM
0
Q: Groovy @singleton is not working properly

user2001627Below is the code that I am trying execute as singleton MyResourceBundleSingleton.groovy // groovy class @Singleton class MyResourceBundleSingleton { public ResourceBundle getResourceBundle () { return someService.getMyResourceBundle() // this bundle is returned by calling a separa...

 
 
3 hours later…
9:52 PM
0
Q: Android service isn't working as a singleton

David Is Not HereI have a service that is being used/bound in multiple activities (I carefully wrote it so that one activity will unbind it before another binds, in onPause/onResume). However, I noticed a member in the Service won't stick.... Activity 1: mService.addItems(downloads); // the initial test add...

 
 
2 hours later…
11:49 PM
0
Q: Creating a singleton by extending an existing class?

Arturas MI'm wondering whether it is a bad idea to create a singleton not by modifying an existing class, but by extending an existing class and just putting the singleton front in the new singleton class. I mean the singleton class wouldn't have any technical methods or anything of it's own, it would jus...

 

« first day (89 days earlier)      last day (804 days later) »