Blogs

The colours thing bites

A while back I found what might politely be called “a mixing of business logic with display logic” issue in the refactoring project. Yesterday it bit me… So we have an object that has a set of named properties. These properties are a mix of business logic and the display logic for 2 or maybe 3 distinct display modes. That’s bad enough in itself but some of the object status values seem to be represented only as a colour… Several distinct object states map to a single value that stores a single colour value.

New toy

My old laptop was a brick that didn’t run VS.Net fast enough for my liking, so I thought it was time for an upgrade. I went for the Sony Vaio PCG-Z1SP because of the weight, screen, wireless connectivity and the fact that I can slap 1gb ram in it. Oh, ok, and it’s pretty sexy. First impressions are good; it’s light, bright and fast. Done the Windows Update thing. Now installing my dev kit.

Why do I do that

One of the good things about working on a code base of questionable quality is that you get a chance to review the way you work as well as they way the original authors worked. It’s my job is to improve the quality of the code and the existing code is so different to how I would have structured it that I find myself questioning the way that I do things.

Bluetooth blues

Obviously been one of those days… I was woken before 7 this morning as Miche rushed back to work - always a bad sign when people take a wash bag with them; she’s still not home… :( I was going to go back to sleep, but, well, I was awake and thought that perhaps I’d have a doze later. No such luck… A day of merging, building and integration. Mixed in with a spot of driver updating for the TDK USB Bluetooth dongle that I have.

More socket server code updates

The latest release of the free version of my asynchronous, windows, IOCP based, socket server framework can now be obtained from here at ServerFramework.com. I’ve updated the code for two more of the socket server articles. More merging, project file updating, and testing… [NOTE: This code leaks when adjusted to build with Visual Studio 2005. This seems to be due to a bug in VS2005’s STL. See here for a workaround.

MSDN Subscription blues

and reds and blacks and greens and, well, you get the idea. Every month when I get a shipment of disks I feel stupid. I just don’t get the way the MSDN Universal Sub is organised. I’d like a little hint card in each shipment that tells me what disks I should have in the wallet for a ‘full set’ of ‘up to date’ disks… The colours and numbers and dates and all that is probably really clever but I just don’t get it.

Weekend's hosed

Michelle’s on her way home, but she’ll be working all weekend drafting an agreement that needs client sign off by Monday morning. So that’s her hair appointment down the pan and the 30th birthday party we were going to tommorrow night hosed; so the couple of hours last weekend sorting the fancy dress costumes were wasted. Note to self; make the $20 million this year and let her do the retire to a $10 million pad in Beaver Creek thing sooner rather than later.

Clean shutdown

No more zone just yet, wine’s just made me blabby. The testing I’ve just been doing with my server is real black box stuff. The build process fires off a script that kicks off the server and then runs the test harness which connects to the server and does “good stuff”, on lots of threads, until it’s done. The script then runs a server shutdown app which asks the server to clean up and go away and, well, it does.

The slacking worked

Had one of those days where I couldn’t get started. I guess it was probably something to do with the beer last night. It was Darren’s birthday and we went to Namco on the South Bank and played on the arcade machines, drank beer, drove Dogems and generally acted Darren’s age ;) Since I couldn’t get going with what I was supposed to do today I sorted out the next socket server release and did the Windows Update dance with all of my boxes.