I feel so dirty

For this current project I’m on, I’ve resolved to give Eclipse a try. This is a major step for me, because my fingers have been typing vi commands for 20 years now, and it’s really hard to get out of the habit of typing “[escape]jjjjj” or “ZZ”. Everybody else here laughs at me because besides etags and the syntax colouring of gvim, I don’t have all the fancy stuff that they have. On the other hand, I can do everything through a ssh connection and can keep my hands on the home row.

Oh well. Welcome to the 21st century. Here’s your kazoo.

How the hell did I miss that?

I’ve been doing Java since 1998, and yet I only just discovered this interesting fact. If you have a class called, say, DBAsset that has a bunch of static methods in it, and you have some static member variables, and you initialize the static member variables, like so:

class DBAsset
{
static PreparedStatement insertStmt = null;
static PreparedStatement deleteStmt = null;

Then calling multiple static methods from within DBAsset’s static main using just the unadorned method name doesn’t do anything to those variables, but each time you call one of those static methods from some other class using DBAsset.methodname, those static variables get reinitialized to null. Huh.

Update: Figured it out. The code that initialized the variables was getting called *before* the code that set it to null, because I had a static DBAsset theAsset = new DBAsset(); before the static initializers. I’m such a slaphead.

And so it begins : personal edition

I spend some time, not nearly enough, during the holiday finishing up my functional spec for the task assigned to me for this release. And during that time, it has been obvious that the isn’t enough time in the schedule to get it done. So I asked for, and received, permission to work overtime. I committed to work at least 60 hours a week for the next two months. And here it is, the eleventh day in a row of billable work, and I’m already tired.

Sigh. At least the money is good.

0wnzord

Vicki asked me to stay home this morning because the furnace guy was coming to do one of the inspections on the hideously expensive maintenance contract we signed up for due to a hard sell sales pitch. She wanted me to stay because she says the furnace guy gives her a real hard sell every time for something that we absolutely must replace or we’re killing babies and torturing puppies. I’m not sure where she’s been for the last 11 years, but by now you’d think she’d realize that I’m no better at resisting those sorts of sales pitches either. But hey, this spreads the blame around for the stupid stuff we get talked into and takes the pressure off her, so I’m willing to do it for her sake.

The guy came, did the usual poking around in the basement, and came up and said “Your ignitor unit is testing at 99 ohms and we recommend replacing it any time it gets to 100 ohms, so you’re due”. I asked for a price, and he showed me it woud be $160 now, or $280 if it was an off-hours call. So I thought I’d outsmart him and ask if he had one in stock, and he said no, he’d checked the truck and he didn’t have one. I figured that would mean that if it *did* fail in middle of the night, we’d have to wait for a day or more while they ordered the part, and we’d risk the birds dying if that happened, so I said to go ahead and order it. A few minutes later, as he’s leaving, I asked when they were coming to install the part, and he said “I had another look around the truck, and found one, so it’s installed already”.

Dammit, he played me for a chump. He must have known that if he’d said they had one in the truck that I would figure they’re easy to come by and so I could afford to wait until it failed, but if they didn’t I’d want to replace it pre-emptively. I’m such a sucker.

Ouch

My back spasmed up in the middle of the night. Actually, it was about 5:30am so I just got up. But because I’m working on my Functional Spec, instead of spending the day lying down to relieve the pain, I’m going from chair to chair trying to find a comfortable position to type.