John Lam 1997 — 2026

Don't Tell Me I'm Wrong

When someone tells me I’m wrong, it makes me determined to figure out exactly what is going on in a system. The great thing about computers and software is that there generally is a correct answer. Unfortunately, we tend to believe what we read in books and magazines or what we hear at classes and conferences. Part of being a good software developer is having the ability to verify the facts for yourself.

As an example of this, recently on the DOTNET list, someone from Microsoft challenged my understanding of how P/Invoke worked. Now, I heard about how P/Invoke worked from Jim Miller, Microsoft’s Lead Program Manager for the CLR. I figured that he must be right.

Regardless, I decided to try and figure out exactly how P/Invoke worked for myself. Along the way, I made some very interesting discoveries, which I’m currently summarizing in a paper. That paper is currently under development, after which I’m going to send it off for review by some friends at Microsoft. Once that’s done, I’ll post it here for you to read.