Posts Tagged surgery

Java Surgery: how to swap(int, int) and have it work… sort of

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 [...]

, , ,

No Comments

Java Surgery: What type should I prefer, int or byte?

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 [...]

, , ,

5 Comments

Rocket Surgery Tag added

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, [...]

, , ,

No Comments

I wonder why I resist repairing myself.

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 [...]

, ,

2 Comments

Rss Feed Tweeter button Linkedin button Digg button Stumbleupon button Youtube button