Bit By Void

Recently I got bit by void* again because of another C++ quirk I didn’t think through. I had a class which wrapped a void* which could be one of many different structs. The structs were POD and didn’t have any shared functionality hence I didn’t bother creating an inheritance hierarchy. Unfortunately I defined the structs like so

Using Powershell To Make Sure Your Xp Machine Is Defragmented

Quick script you can run at login to ensure that your XP machine is being defragmented. I chose 1:00 AM every evening but you can quickly alter that in the script. I have this script run as part of my regular set of configuration scripts to ensure that my XP machines are in good shape.

Is There Anything In That Pipeline

One operation I frequently perform is use a powershell pipeline to filter out a large set of data. Typically I don’t care what is in the result but rather is there actually anything left in the pipeline. I can’t find a good powershell built-in to perform this task so I use the following filter.

Book Review Facts And Fallacies Of Software Engineering

I finished reading Facts and Fallacies of Software Engineering a few weeks ago. This is an excellent book and I recommend it for anyone who’s been in the industry for a few years.

Code Is Not Self Documenting

Nothing revolutionary about that statement. Yet I keep reading the opposite on various comment threads and message boards so I thought it a good idea to explore it again.