Posts Tagged surgery
Java Surgery: how to swap(int, int) and have it work… sort of
Posted by dreamreal in Java, Rocket Surgery on 9 April, 2010
So it’s a known fact that Java passes references by value. That means that if I pass an Object of some kind into a method, I can change the values in the object, but not the object reference itself. Likewise, if I pass an int into a method, I can change the value of that [...]
Java Surgery: What type should I prefer, int or byte?
Posted by dreamreal in Java, Rocket Surgery on 22 March, 2010
From online: Is there any benefit of using byte intead of int? I have a case where the range of possible values is between 0..100, so an int would be way to much for this, a byte is also more than sufficent for this. But then I think about the 32 bit architecture of today’s [...]
Rocket Surgery Tag added
Posted by dreamreal in Rocket Surgery, general on 22 March, 2010
So today I’m scanning some various things I scan (okay, it’s IRC) and someone is asking some really stupid questions. They’re homework, so the stupidity is understandable (while not being excusable) but it’s finally kicked me to the point of adding a tag to my blog. I know, I know: “Wow, a whole… tag.” Well, [...]
I wonder why I resist repairing myself.
Posted by dreamreal in Psychology, general on 23 February, 2010
I was reading an essay concerning left vs. right sources of authority and something stood out: the author referred to Dr. Charles Krauthammer’s opinion on stem cell research and factored in Dr. Krauthammer’s paralysis. I didn’t know any of this. The paragraph in question that caught my eye: Take, for example, Krauthammer’s position on embryonic [...]