Skip navigation.

Archives

Birds Can Shit On Your Head

Since I started the book I have been listening to Kate Nash’s new album Made of Bricks. I like it. Very easy listening.

Now, I spend a lot of time with my clients trying to give them the confidence to attack different problems. Initially, it looks like I am trying to make my clients brave but, mainly, I use a trick from cognitive psychology called reframing. Reframing doesn't remove fear, it just shows the patient (my students) there is nothing to be afraid of. Or, like Nash sings in Birds:

Can't Code, Won't Code - The Shortest Technical Interview.

It's shocking, isn't it?

I mean, the nerve of some people!

I just finished a technical interview with a self-proclaimed "build engineer" - apparantly expert in .NET, Ant/NAnt, CruiseControl, continuous integration and all that jazz. His CV claims he's been doing it since Year Dot, so you'd think he'd be pretty good at it by now, wouldn't you?

So I hand him my laptop and ask him to write a NAnt script to compile a .NET project and run a suite of NUnit tests. That's kind of like the "Hello, World!" of build automation. I stay to pair with him, but, as it turns out, for nought.

Pex It: Don't mix preconditions and assertions

This is a general recommendation if you're planning to use a tool like Pex in the future: make sure that preconditions (i.e. parameter validation) fails in a different fashion that other assertions.

Here's a snippet that shows the problem:

// don't do this
void Clone(ICloneable o) {
     Debug.Assert(o != null); // pre-condition
     ...
     object clone = o.Clone();
     Debug.Assert(clone); // assertion
}

Pex at Agile 2008... maybe

Maybe yes, maybe no, I guess it depends on the reviews... Have you reviewed it?

http://submissions.agile2008.org/node/2766