Articles by Eric

Design by Contract: Is It Worth It Without Language Support?

By Eric — 7 minute read

This is a continuation of thoughts after reading Design by Contract by Example by Richard Mitchell and Jim McKim. This time I want to write a little about design by contract without direct language support. What do you give up without language support, and is it still worth it to …

Read more...

Ten Lessons Learned Assembling a PC

By Eric — 10 minute read

I spent some of my Christmas vacation upgrading the hardware on my PC. I've been suspicious that there was something wrong with my old motherboard, so I decided to get a new one. And when you're getting a new motherboard, you might as well get a new CPU and new …

Read more...

ByChance - An experiment with randomness

By Eric

Download

ByChance.exe
Version 1.0.0.28867
21 Sep 2005
84 KB

ByChance depends on the Microsoft .NET Framework 1.1, which can be obtained through Windows Update.

Introduction

ByChance is an experiment brought about after considering the effect of randomness in biological evolution. For more background, please see …

Read more...

By Chance - Can Order Come Out of Randomness?

By Eric — 2 minute read

A few years ago I was reading some books about biological evolution. At some point, probably reading something by Richard Dawkins, I was thinking about randomness and its ability to produce apparently non-random things. All you need is a little pressure that selects one random thing over another. So I …

Read more...

Design by Contract: An Alternative to Testing for Code Quality

By Eric — 7 minute read

I recently finished reading Design by Contract by Example by Richard Mitchell and Jim McKim. The book, as its title suggests, gives advice about writing good contracts through a set of principles applied in various examples. In addition to wanting to learn more about design by contract generally, I came …

Read more...

Dell Axim X50v in a Palm User's Hands

By Eric — 7 minute read

It seems like Microsoft's typical entry into a market goes something like this. It sees an interesting market built up by someone else, and releases a product in that space. The product is crap compared to the existing market leader. Microsoft revs the product a few times until it is …

Read more...

Packing and Alignment

By Eric — 1 minute read

I've made some effort to understand the differences between the Struct Member Alignment compiler option /Zp, #pragma pack and __declspec(align()) with Microsoft Visual C++ in light of an odd bug that ultimately was caused by inconsistent packing options between compilation units.

/Zp and #pragma pack are equivalent, but /Zp …

Read more...

DeskMinder Release

By Eric — 1 minute read

I wrote DeskMinder as a Christmas gift for my family and friends. It originated as just a bit of HTML and JavaScript as an Active Desktop component for reminding me when special occasions were drawing near, like family members' birthdays and anniversaries. To make it easier to customize the events …

Read more...

InspectionPrinter Initial Release

By Eric — 1 minute read

I've released the first version of my InspectionPrinter utility. We have been renewing our efforts to do more formal code inspections at NextPage recently, which finally motivated me to finish this thing off, having originally started it nearly two years ago. It can be downloaded from the software section.

The …

Read more...

.NET Context Menu Handler

By Eric — 3 minute read

I've been working on a context menu handler shell extension in C# lately. There are a few samples that people have produced on the web (for example, The Code Project, pek.com, and TheServerSide.net). I've found a better way of implementing IShellExtInit.Initialize than in the examples I've seen …

Read more...