billroper: (Default)
I had managed to exhume one of the necessary pieces of information using my superior Google-fu, so Gretchen was able to get on the phone with our financial advisor today and clean up one of the long-standing bits of financial business that needed to be taken care of. The right incantation was spoken and now all the various wheels are in motion so that the clean up will happen.

We are, of course, waiting to see if anything blows up in the process. :)

Speaking of things that blow up in the process...

So I'm writing a new feature at work where I'm using some of my older code to allow me to extract the data that I need to answer a lot of questions. It's actually working pretty well, but I got into a situation this afternoon where I was getting a null pointer exception. Ok, I had the data that I could pass in to clear up that null reference, so let's just initialize things and let them run normally.

A cascade of null pointer exceptions followed for a different object, because I had also passed in a null for the period identifier instead of the well-known (in this environment) "this is not a valid period" identifier. I added null checks. I added a lot of null checks.

And then I went back to my code and passed in the well-known "this is not a valid period" identifier instead of a null reference. Because suspenders *and* belt, right?

It's working correctly now.
billroper: (Default)
There was a lot of catching up on sleep today, along with other forms of rest. I managed a trip to Sam's Club in the afternoon (where I brought home things for everyone in the house except me), but other than that and a load of laundry and a bit of kitchen cleanup, very little was accomplished.

And all things considered, that's just fine.

Tomorrow, I am taking a deep dive into floating point math at work. Wish me luck!
billroper: (Default)
After way too long trying to find a serialization error at work over the last two days (and finding a number of them; just not the one that I was looking for), I finally got bright enough to remember that the JDeveloper editor will allow you to split the window and look at the same file at two different line numbers. Lining up the inbound and outbound serialization code opposite each other made the error a *lot* easier to spot.

It would have been easier if the error had never been put in, but these things happen.
billroper: (Default)
I fixed two bugs today by removing one line of code for each bug.

(Ok, I made another small change for one of the bugs, but it was cleaning up something else on the call stack that could have caused a problem under some circumstances. I think *that* change was three lines.)

One of my friends at work notes that if you take fewer lines of code to do something, you reduce the opportunities for introducing bugs. If I can manage to delete down to zero lines of code, there will be no bugs left at all.

Wait! There's something wrong with that...
billroper: (Default)
I have turned the corner on the great refactoring job I'm doing at work. The UI is mostly doing the right things, so now it's just a matter of driving out the glitches from the refactoring.

I'm hoping to finish this up on Monday. I am, of course, an optimist...
billroper: (Default)
I am engaged in a project at work where I am unraveling someone else's code and knitting it back together in a fashion where it will be much easier to trace through the bits of yarn when I'm done. Unfortunately, it's not trivial in any sense.

But I am making progress.

Slowly. Very slowly.
billroper: (Default)
I actually don't so much mind refactoring code, as long as I am doing something that will improve the code base. For instance, today I worked with one of my colleagues to convert a reference to a particular class to a reference to a shared interface implementation. This was good, because now anyone else who has the same problem will be able to implement the method on the interface and get the behavior that they want.

And then there is the refactoring that is just cleaning up after other people who have introduced references to other libraries in classes that simply shouldn't be using those libraries. This is much *less* fun.

At least the end is in sight.
billroper: (Default)
Another round of fixes destined for an emergency patch that I spent most of the day hacking out with one of my co-workers. The code in the neighborhood is much cleaner now -- I wrote this fairly early in my Java adventure and was able to make a bunch of fairly trivial, but major improvements while cleaning up the bad behavior that was going on. And I managed to eliminate a lot of duplicate code, which is always a bonus.

It's passed our initial smoke tests to see if it has fixed all of the client bugs, so a build is underway and QE will have at it in the morning.

Chaos! It's what's for lunch.
billroper: (Default)
And today was back to work (and school) after a two-week break. There were varying degrees of success.

On the other hand, I finally threw up my hands and stopped trying to add a remove method to my Java iterator built on top of my unifying interface layer. Instead, I've coded things using a different approach to what I'm doing.

I've managed to cobble together a first unit test to throw against the wall that found a couple of different (and one pre-existing) bugs and have fixed those. Now that the framework's in place, I should be able to write a lot more test cases fairly quickly to make sure that there aren't more bugs or, if there are, that I can fix them. :)

I have become fond of unit testing...
billroper: (Default)
I may be getting tired of the bugs coming in, but apparently they are not tired of me.

Ah, well. I was able to patch things around so that I could read the seriously damaged file I was sent this morning. Now if only the rest of the code would behave itself... :)
billroper: (Default)
I have been fixing a silly number of bugs in the last couple of days.

One of the bugs that I am fixing right now is one that I thought was going to be a horrible amount of work. It turns out that I can fix it rather simply, which I found out after digging through the code.

I just can't *test* the fix, for reasons having to do with Microsoft Excel's lousy handling of COM memory and garbage collection in .NET.

So I am checking in the fix and passing it along to someone who has installed the 32-bit version of Excel, which seems to do a better job of garbage collection than the 64-bit version. That's not what I would have expected, but it is what appears to be true.

Some problems are just annoying.
billroper: (Default)
I am still crawling through our user-interface code. I have cleaned up a great many things, but there are some interactions that are perplexing me. I think I have some ideas about how to proceed, but I'd like to talk with one of the fellows who wrote it.

I'd like to give it back to him, actually. We'll see how that goes. :)
billroper: (Default)
I have fixed a great many bugs this week.

Right now, I'm looking at the debris in our Visual Studio 2019 port. The COM handling machinery there seems a bit idiosyncratic, but it's possible to work around those eccentricities once you find them. I'm doing bulk corrections and it seems to be stable.

But I've found some code in our UI layer that I really don't like. I think I can fix it in a day and then we'll see if some of the idiosyncrasies in *our* code will be good enough to go away.
billroper: (Default)
I am trying to write a new bit of code to make a particular interface work, but the code that I write isn't working (or apparently called) even though it seems to have all of the necessary elements for this particular incantation.

I am annoyed.

I'll try this again tomorrow.
billroper: (Default)
I cleaned up a bunch of crufty, slow code in our user interface layer over the last week and checked the changes in today. There are still some more places that can be cleaned up, but I took care of a lot of the low-hanging fruit.

Oops

Aug. 20th, 2020 08:55 pm
billroper: (Default)
I rewrote a lot of our XML handling code in C++ to be more efficient.

Unfortunately, I appear to have made a mistake somewhere, because I'm getting an error message from the COM object that is consuming the results. Sadly, it is not a very helpful error message.

At least to me.

I have asked for help from the folks who wrote the COM object. We'll see how it goes.
billroper: (Default)
Don't Write Inefficient Code.

This suggests, perhaps, that I have watched too many episodes of "Don't" during the pandemic. However, I spent the afternoon cleaning up some really inefficient code in one of our modules this afternoon. I'm not sure exactly how much impact it will have -- we'll know more about that when it gets into testing.

But it will help. I had explained much earlier how to make at least some of these fixes. They were never made.

Until now.

Don't. Write. Inefficient. Code.

*sigh*
billroper: (Default)
Three day weekend over, so it's time to be back at work.

I made some progress today (and cleaned up a few lines of questionable code in my own area, just so you understand that I make mistakes). Unfortunately, a lot of the other stuff that I was looking at needs some refactoring, which turns it from "fix a bug" into "this is a project".

I do not need another project right now, especially in code that I'm not that conversant with.

We'll see how it goes.
billroper: (Default)
This afternoon was spent refactoring someone else's code. I think it's helped, but I need to find out where the other bottlenecks are hiding. Maybe they'll turn up tomorrow.
billroper: (Default)
I am jammed up waiting for things on my various projects, so I went to fix SpotBugs errors today in between meetings. I fixed about 10% of the outstanding warnings, although half of that total was in a single file and fixed with a global search and replace.

Even so, it's progress.

Profile

billroper: (Default)
billroper

May 2025

S M T W T F S
     1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 222324
25262728293031

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 23rd, 2025 04:40 pm
Powered by Dreamwidth Studios