Making Wrong Code Produce Compiler Errors

Gregg writes about his response to a recent Joel article.

I had the precise same response, based on some conversations I had with Jay a while back. To sum it up, the utility of creating a small class to encapsulate a specific "kind" of thing (as Joel describes it) is vastly underestimated.

In my current code, I have a need to deal with time durations (and remember that I'm in C++...), so I wrote a little class named CDuration, and then pass durations around. It's really convenient.