My data stores benchmark gives out timings in terms of nanoseconds, by making a list of response times and then applying statistical methods to get data out of the list. However, one part of that comes up every now and…
Day: July 10, 2014
Woot, IRC FTW! Someone today asked a question about Spring that was actually relevant for once. The problem was that he wanted to inject not a bean, but a bean's referenced property into another bean. Put more succintly: He had…
From IRC, from whence many "interesting" questions come: "If I have a 4 dimensional integer array in Java, is there a way to initialise every element in it to a particular value?" Well. First off, you don't have a four-dimensional…
It's really funny, honestly, but kids, Java isn't cool. It hasn't been cool for a long time. Slashdot even posted "The Struggle to Keep Java Relevant," which ... wow. Not only is Java not cool, but it's not even relevant…
From IRC: "What's Inversion of Control?" First off: Oh, my. Here's a quick summary: traditionally, Java resources acquired whatever resources they need, when they need them. So if your DAO needed a JDBC connection, it would create one, which meant…
As an artist - an artiste, thank you - I get all worried about creating stuff that people might find offensive. When I was nine or ten, for example, I wanted to write a poem that used the word "damn."…
The key to distributed – and enterprise – computing is boundary management. Even worse, it’s not conceptual boundary management – it’s real boundary management, which is a lot harder to figure out. A boundary is a barrier between things or…
From online again, names concealed to protect the guilty: I'm trying to figure out the shortest way to do this: if (anotherString != null) s = anotherString; Now, if you'll pardon the stream of consciousness, through discussion it turns out…
One of my ... flaws, I guess, is that I consider myself an artist. I typically prefer the aural media to visual, but I'm not afraid to try visual media. I guess a few definitions are in order. Aural media…
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…