Xcode 4

Xcode 4 has a lot of cool new features. One of my favorites is it’s ability to tell you when you introduced a bug in your code; the feature is similar to a spell check found in a word processor. Usually, these cool tools are only available for Objective-C, but because of LLVM, this feature … Read more

VMR9

Right now I’m dealing with some code of mine that isn’t working on a Microsoft product. I got a webcam, a Microsoft Life Cam VX1000, that doesn’t want to work with DirectX. It’s weird. A Microsoft product that doesn’t want to work with a Microsoft SDK. I see on the web though that there are … Read more

What’s wrong with this code?

I love reading code like this: int IAmGoingToReturnAnInt ( int* gimmeSomeData ) { int munchMunch = *gimmeSomeData; ++munchMunch; // Developer note: FU } Okay, the last developer note doesn’t really exist, but you would think that this function would return an integer. I mean, come on! Give me something!

What’s wrong with this code?

Recently, I was looking at a bug report for an error that would only happen on one operating system. When I looked at the code… I had wondered why no one called this one out: char buffer[128] = {0}; // Some code here memcpy ( buffer, another_buffer, 128 ); // Some more code free (buffer); … Read more

Programming language and convention

A programming language does not enforce rules. It just gives you the means to tell a computer how to do something. In my previous job I saw how SQL was being mis-used and how there was a lack of design used in implementing certain databases. The language doesn’t guide you to creating good databases; this … Read more

Popular post

I’m surprised what people find interesting on my website. The most popular post is actually the Haversine formula page. Thinking about it, that whole process was a real pain in the butt to implement, so I can see that if someone else had to do it, that I could actually save them some time and … Read more