Bill Roper (billroper) wrote,
Bill Roper
billroper

Sherlock's Stupider Brother

I had an opportunity to pull out my favorite Sherlock Holmes quote today: "Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth."

I was helping one of my colleagues chase down a bug in some code he was writing on the Java server. We're trying to add the time period editing over there that we have on the C++ side, so it's just a matter of making sure the code is correctly ported.

But the data spreading was going awry, so *something* had to be wrong. "Ok," I say. "Let's stop the calculation in the middle of the process so we can see if the data is getting spread correctly in the first place."

It wasn't.

Some time this afternoon, I realized that there might be a problem with the calculation order. Had it been reinitialized correctly after the changes? Where's the routine that does this? Ah, here it is! Why is it empty with a comment that says "STUB"?

Eep. This routine only gets called from the time period editing code. And since we hadn't exercised that on the Java side, we hadn't noticed that I'd never filled it in.

Well, it's filled in now. And the code works a lot better.
Tags: musings, work
Subscribe

  • Time for Rebuilding

    Well, there's nothing like research. Having determined that DDR5 is going to carry a substantial price premium over DDR4 memory for at least a year…

  • Driven Wild

    The studio computer continues to misbehave in various ways. When I fired up Cubase today, I got a lot of nasty, blocky video, despite having cleaned…

  • Some Old Doggerel

    I recall having mangled a CSN tune many years ago on the way to Contraption. Like that convention, the particular co-worker whose code I was digging…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments