« first day (52 days earlier)      last day (841 days later) » 

8:16 AM
0
Q: C++ Linker Error Undefined reference in Singleton class

KhajaviI'm trying to port this java singleton class to c++: public class Singleton { private static Singleton uniqueInstance; private Singleton() {} public static Singleton getInstance() { if (uniqueInstance == null) { uniqueInstance = new Singleton(); } return uniqueInstance;...

 
 
3 hours later…
11:14 AM
1
Q: Android Activity Lifecycle and Singleton and mutual references persistance (memory leaks)

ReneAs I understand a singleton cannot be expected to hold persistent data in Android apps because an app may get destroyed and recreated several time in the app's "apparent lifecycle". This in itself is not a problem for me. The problem comes with what exactly happens when an app goes through this d...

 
 
3 hours later…
1:57 PM
@Zoidberg I wonder if it's feasible to design a language where every keyword is contextual.
 
user142019
Should be possible.
 
So you could even have variables that are called int or if :)
But even if it is possible, my gut tells me it would bear endless potential for confusion.
 
user142019
Yes.
 
Otherwise, mainstream languages would do it.
 
user142019
@FredOverflow nothing is ambiguous in if := 42;.
 
user142019
1:59 PM
I can only be a vardecl.
 
Right. I think I'll try to design such a language and tell you about my observations ;)
 
user142019
It bugs me how free takes void* and not void const*. :v
 
Fuck, I never thought about that. Now it bugs me, too!
 
user142019
lol
 
Do you know the difference between const and immutable in D? If so, what are your thoughts on them?
 
user142019
2:03 PM
No.
 
user142019
I don't know shit about D.
 
What is Haddock?
 
user142019
Doxygen for Haskell.
 
user142019
It's what you get when you follow links on Hoogle.
 
2:05 PM
Doxygen is Javadoc for C++, right? :)
 
user142019
Yes.
 
user142019
lol
 
user142019
Clang can parse Doxygen comments and generate warnings if they refer to non-existing parameters. :P
 
kewl
 
user142019
I'm thinking of a tool that reads code and plays either nice or terrible randomly generated music depending on the quality of the code.
 
2:11 PM
The world needs this tool badly.
 
user142019
As you write. :)
 
user142019
Vim plug-in lol.
 
user142019
Prevents people from writing bad code.
 
They could always replace the audio files.
 
user142019
No.
 
user142019
2:11 PM
The audio is generated.
 
user142019
 
2:32 PM
1
Q: Is singleton approach right for accessing/maintaining database and internet connection

pKsSo , I am working on an app which requires a local db connection and uses some web services to send and receive data back-forth as well. Whenever I need and database operation then I create an object of my DbConnection class (this is the name of class I am using to get my database) and perform ...

 
 
8 hours later…
10:46 PM
0
Q: Get Singleton of class that WILL be included

Ivan Seideli currently have this classes: Activity, ActivityManager (that extends Activity). I have one method in Activity, that gets the singleton object of ActivityManager. After a while, i saw that i got into a "live without life" paradox, as ActivityManager will only be "created" by the compiler, AFT...

 

« first day (52 days earlier)      last day (841 days later) »