[pt_view id="ce50e34ece"]
Continue ReadingC++ Sorts
[pt_view id="cd7c62717a"]
Continue ReadingCreating a Memory Leak With Java
I just had an interview, and I was asked to create a memory leak with Java. Needless to say I felt pretty dumb having no clue on how to even start cre
Continue ReadingAvoiding “!= Null” Statements in Java?
I work with Java all day long. The most used idiom (code snippet) I’m programming in Java, is to test if an object != null before I use it. This is
Continue ReadingC++: What is The Rule of Three?
What does copying an object mean? What are the copy constructor and the copy assignment operator? When do I need to declare them myself? How can I
Continue ReadingC++ Binary Search Trees
[pt_view id="3a985d76d6"]
Continue ReadingC++: Why is one loop so much slower than two loops?
Suppose a1, b1, c1, and d1 point to heap memory and my numerical code has the following core loop. const int n=100000 for(int j=0;j<n;j++){
Continue ReadingC++: What does the explicit keyword in C++ mean?
Someone posted in a comment to another question about the meaning of the explicit keyword in C++. So, what does it mean? Skizz Answer: In C++, th
Continue ReadingC++: Why does changing 0.1f to 0 slow down performance by 10x?
Why does this bit of code, const float x[16] = { 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1,
Continue ReadingC++: Cycles in family tree software
I am the developer of some family tree software (written in C++ and Qt). I had no problems until one of my customers mailed me a bug report. The probl
Continue Reading




