Archive for the 'Programming' Category

Doodle Up Front

Thursday, April 13th, 2006

I find it very helpful to jot down a few squares and arrows when thinking about a new system or a new layer of a system that I am building. These squares and arrows will look very much like UML, but probably not be 100% compliant. The point is, they are really somewhat of a [...]

test by test - Some Instructions on Programming and Life

Sunday, March 26th, 2006

I can not begin to tell how much I love a little book called “bird by bird - Some Instructions on Writing and Life” by Anne Lamotte. It has influenced my life and my work in more ways than I can list here, and this is also not the subject of this post. The idea [...]

30 Minutes, first thing in the morning

Wednesday, March 15th, 2006

I used to have the habit of coming into work, and as the first thing make some coffee and grab something to eat in the kitchen. I would hang out there, chatting with whoever was available, for a varying amount of time. I started noticing that, when doing this, it became harder and harder for [...]

Testing Practice: Use your eyes, when necessary

Tuesday, March 7th, 2006

Imagine the situation: You have a third party system, and you would like to query it for some information. You are not sure yet how this information will look like, and it will also change over the course of exploring and discovering said system in your test. Let’s also say, the output is a [...]

How to test if your ASSERT macro is compiled out

Saturday, March 4th, 2006

I am often interested in how specific code works in different build configurations. In the case of a custom ASSERT macro, I want to make sure that it does not evaluate any expression in builds where it is disabled (i.e. it is 'compiled out'). The technique I use is the following:

Let's assume CHECK_EQUALS is a [...]