Log in

No account? Create an account
entries friends calendar profile my webpage Previous Previous Next Next
The only thing more satisfying then fixing a bug is fixing one of… - Tina Marie's Ramblings
Red hair and black leather, my favorite colour scheme...
The only thing more satisfying then fixing a bug is fixing one of those bugs that turn out to be an interaction of 3 tiny bugs.

I knew it was going to be a good day. I got to work early, I got started debugging, I would have missed lunch entirely if Mike hadn't come looking for me, and I was actually suprised when I finally got the last of the bugs fixed and looked up to realize it was 9pm.

I love days like that.

Oh, yeah - I got a new userpict.

Current Mood: satisfied satisfied
Current Music: Futurama

4 comments or Leave a comment
From: ptomblin_lj Date: August 23rd, 2005 12:38 pm (UTC) (Link)
Back in 1986 I fixed a bug way down in some low level code, but found that it was still failing in a few cases. I worked my way up the code, and found the following comment


I removed the "temporary" work around that had been in place for 15 years, and the problem was fixed. Irv Charney was a summer student in 1971, and in 1986 he was in charge of the whole department. He was amused when I showed him the comment.
skywhisperer From: skywhisperer Date: August 23rd, 2005 12:48 pm (UTC) (Link)
*laugh* It's sort of scary to think how many comments like that I've left in my life. Of course, I have no illusions that any of that code will still be around 15 years from now...

...of course, probably neither did he.
alioth1 From: alioth1 Date: August 23rd, 2005 09:19 pm (UTC) (Link)
It's the same old story. I wrote what was supposed to be a temporary hack when I was doing a co-op year at IBM. It was for some lab equipment that was connected to a terminal server, and interfaced to the (legacy program, MUMPS I think it was) over ethernet. Trouble is, MUMPS only spoke to RS232 devices (i.e. /dev/something) rather than on a socket. So my job was to write a temporary hack which was supposed to last only a few months until the whole system was replaced. The hack listened on a socket so the terminal server with the attached lab equipment (in itself a hack) could connect to it, then it would simply pipe the input/output to this thing on a pseudoterminal. A bit like Netcat really, but Netcat wasn't around then. MUMPS then talked to /dev/pts/X and was happy.

Well, imagine my horror when years later, working in a completely different continent, thinking that no one would ever be able to find me... I get a telephone call from IBM in Northern Ireland asking me questions about this bloody thing. It wouldn't overly surprise me if someone tracked me down next week and asked another question about it quite frankly. It was my first Cluebat that temporary hacks usually wind up as being anything but.
alioth1 From: alioth1 Date: August 23rd, 2005 09:14 pm (UTC) (Link)
So not like the non-satisfying bug I fixed in oolite this evening. There were some textures that were not exactly sized with widths and heights that were powers of two, and OpenGL has a hissy fit if you pass it a texture like this. The prior author used SDL_image's zoomImage to fix it, but the zoom factor suffered from a rounding error, which meant it still wasn't fixed. So I put in a rather unsatisfying hack - check to see if the final image has dimensions that are not powers of two, and if it isn't, create a new image which does have a width and height which is the next nearest power of two that's greater than the original dimensions...then blit the image in without doing anything else to it. The problem textures are always a few pixels off so you can get away with it without it being noticable on the thing that's being textured. There has to be a better way, say, like finding a zoom factor that always results in a zoomed image that'll be right, but I can't think of it right now.
4 comments or Leave a comment