Friday, May 15, 2009

Wet of Clothing in Sophia Antipolis

My web-titan send me a link to this webpage about Hope-Driven Development. There's a lot of truth to the story and it is no wonder that checking incoming variable values is a part of Tick-the-Code method. As a matter of fact, there are two relevant rules in the method; NEVERNULL and CHECK-IN.
NEVERNULL asks checkers to tick the first statement in a function to dereference a pointer without first validating it isn't NULL. Otherwise all hell breaks loose, when the system is executed. And that is the best case scenario. In a much worse situation, the system doesn't crash and seems to work fine. It does, however, hot work quite correctly and the longer it takes for the developers to notice, the harder it is for them to figure out what exactly is broken.
Pointers are special, because their side-effects and symptoms can be extremely insidious, but there are other components and values in source code, too. Variables of other types can also assume wrong values and if the developers assume that that never happens, chaos will ensue.
Assuming makes an ass out of you and me.
Rule CHECK-IN makes checkers in code review locate all places where a variable is used without first checking its sanity. Once again, not all variable values can be even roughly checked, but a conscious risk is preferable to ignorance every time.

---

The day started in Sophia Antipolis with a downpour of such intensity that cats and dogs are far too little and few in number to describe the dawning waterfall. Walking to a nearby bus stop with an umbrella was still enough to melt the creases off my trousers. The sloshing sound in my shoes became more of a squeak once I entered the customer's building, where I managed to perform a test ticking regardless. I had a strong sense of déjà vu - only appropriate, what with me being in France - that just two weeks ago I had wondered dripping wet the unknown streets of Sophia Antipolis, having stepped out of the bus six stops too early, without a map or an idea which way to go. The flu that had started to bother me the day before, didn't improve my situation. So much for first impressions, now was my last day in Sophia Antipolis, for now, and it was showing me its fluidier side.
It doesn't rain often in Southern France, but it rains a lot. You deduce how drizzly the rainshowers must be.

---

I'm now in Nice, although going to Cannes did occur to me. There's some kind of film festival there.

Labels:

Tuesday, May 12, 2009

Software development revealed

There's an interesting rendezvous between software development and real world taking place in the United States. In this case the supplier of breathalyzer code has refused to submit it for review in a trial case. This Techdirt article supposes that the code is too crappy and the supplier too embarrassed to obey the Supreme Court decision.

I will have more to say about an older case of breathalyzer code analysis. In that trial the supplier gave in and the code was found not to be proprietary after all. And crappy.

What's a breathalyzer?

Monday, May 11, 2009

Doctoral Dissertation: SW Checking Needs Improving

It's been brought to my attention (thanks, Juha) that there's an interesting doctoral dissertation about to be accepted in Helsinki. Sami Kollanus has written about how the checking methods in software development should really be improved. According to this article (only in Finnish), his dissertation contains some suggestions on how this might be possible.

Professor Tervonen, who acts as the opponent, is familiar for his work in software inspections and I've bumped into his virtually a couple of times. In 2006 I found out that he specializes in inspections and that they had some studies going on in the Department of Information Processing Science in the University of Oulu, so I sent him an email with the faint wish to be noticed. I did receive a friendly reply, but that was that then. The second time was just this year as I took part on an online lecture course and professor Tervonen was one of the lecturers. It was a treat to hear about the current research directions in software inspections.

I can't wait to get my hands on Kollanus' dissertation and read what kind of things he has studied and what kind of suggestions he has for improvements.

---

Tomorrow, I'll be in Sophia Antipolis, France. Again. This time I know where everything is and I'll rent a car, because walking everywhere was truly difficult. Possible, but difficult and slightly dangerous. Not sure that driving with the French is any safer, though.

Friday, May 01, 2009

Dilbert and Simpsons

As I seem to be stranded in Sophia Antipolis because of the bank holiday, what better way to while away the boredom than to post a blog entry. Only I don't have anything of substance. The Dilbert today caught my eye.

If you miss attending good training, how do you think I feel as training provider?
Dilbert.com

---

For the Battlestar Galactica fans, here's a treat. I give you "Battlestar Simpsonica":

Labels: ,