how the telegraph changed the church

Knowing pieces of information about the world makes one well-informed, even if the things they know have little bearing on practical life.
[...]
The exultation of information and knowledge for the sake of being well-informed deemphasizes the need to actually apply that knowledge. If “knowing is half the battle,” then applying the knowledge is the lost other half. Our culture places a higher value on possessing knowledge than applying it. This truth manifests itself in evangelical church life.
[...]

good ish.

Now, what am i going to do after taking in the above article? will anything change? or will i just nod *amen* and go back to consuming information?

the difference between the sheep and the wolves definitely is *not* based on what they did and did not *know*, eh

Posted in

and another

i wonder if will be able to tell from my recent del.icio.us links what kind of camera is next up to bat?

(joy it was less than $20!!!!!!!!!!!!1 shipping included!!!)

weird variable loss of scope(??) in java

we’ve run into an odd situation today with a piece of code.

below is the method (some irrelevant detail changed for readability)

if (this.isValid(newStatus,this.getHeader())){
String currentStatus = this.getStatusCode();

if(!currentStatus.equals(newStatus)){
if(currentStatus.equals(BPConstants.CONST)) {
this.setStatusCode(newStatus);
DBUtil.updateBusinessObject(this);
}
}
} else {
throw new BMException ("invalid state from" + this.getStatusCode() + " to " + newStatus);
}

the most bizarre thing, while stepping through the debugger, however, is that with the code formatted as such, and the code doesn’t not get executed (it should never go into the condition since it is false), it jumps directly to the

DBUtil.updateBusinessObject

statement, within the condition!

only, after moving the declaration of currentStatus *outside* of the if, did the code behave properly! i realized that apparently, “currentStatus” somehow got weirdly in some twilight zone between being in scope and out of scope, so that

!currentStatus.equals(newStatus)

wasn’t getting evaluated properly…but wait, in the debugger, this piece of code *is* getting evaluated properly, and

currentStatus.equals(BPConstants.CONST)

never gives an NPE, although my debugger now tells me that

currentStatus

cannot be evaluated at that point.

is this some wierd issue with J2SE 1.3?

either way, don’t let that kind of thing get you. took me about 2 hours (well part of it is because of the crummy development setup wherein i have to stop my container, compile, then restart) to test various scenarios to come to that conclusion.

erg.

UPDATE (even before i post)

we ran into a similar situation later in the day–this looks like it *has* to be a bug in the JVM. even worse this time, the declaration wasn’t even inside of an if. i.e. the following code causes the if to be evaluated weirdly (it doesn’t seem to evaluate either correctly or incorrectly :), and the code would jump to the DBUtil line:

[some code here]

String currentStatus = this.getStatusCode();

//only make the change if there IS a change
if(!currentStatus.equals(newStatus)){
if(currentStatus.equals(BPConstants.CONST)) {
this.setStatusCode(newStatus);
DBUtil.updateBusinessObject(this);
//no upstream changes.
}

}

moving the declaration before the [some code here]


String currentStatus = this.getStatusCode();
[some code here]

//only make the change if there IS a change
if(!currentStatus.equals(newStatus)){
if(currentStatus.equals(BPConstants.CONST)) {
this.setStatusCode(newStatus);
DBUtil.updateBusinessObject(this);
//no upstream changes.
}

}

worked!

ah the joy of having to use a particular JVM with no upgrading with Quite A Bit of Ceremony.

Protected: todo

This post is password protected. To view it please enter your password below:


Posted in | Enter your password to view comments.