TDD and legacy code

I have been doing some presentations on TDD and one thing that always happen is that you get some tricky questions in the beginning of the presentation. As you’re introducing a new concept it of course starts very small and easy but most people directly try to put into their context, their normal situation. And let’s admit it – there not very often we start off in a void, aka. a green field project. No – it’s mostly brown field - there is always code that exists that needs to be handled. What’s worse – that code is not written to be tested – Not Designed for Testability. I think this is a very interesting subject and it touches on other subjects that I’m interesting on surrounding why it’s worth “clean up your room” (as Uncle Bob would have put it…) There’s a lot written on this subject, most notable...
Read More

Trying Coding Dojo, Kata and Extreme OOP

In preparations for a presentation next week (which will go on for two days… brrr) I had my sights set on doing something about Extreme OOP or Object Calisthenics. I’m thinking of using that exercise to illustrate some OOP practices. In the PDF-file for the Extreme OOP above you’ll find an excellent kata (the Commodore 64 kata) that will take you through all the rules of Object Calisthenics. OK – but since I didn’t wanted to do that exercise all of my own I hooked up with two Avega colleagues (David Blomberg and Magnus Forberg, great guys!) and we did some kind of coding dojo. The findings was quite surprising. First – the rules of Object Calisthenics are not be followed when you do ordinary code. It’s simply an exercise to get you to think about OOP in a very structured fashion. Secondly – the rules are very hard to...
Read More

Great tool for creating snippets

I love the snippet support in Visual Studio. It’s so much a part of what we do that we don’t even think about it anymore. Just like Intellisense way, way back – remember the time before that? But one thing that always has been bit messy is to create your own. And that Snippet manager – what is that? I’ve never been able to get to like it. But there is help on the way; meet Snippet Designer. It can help you not only to create snippets from existing code, but also to manage your snippets in a nice way.
Read More

Deploying ASP.NET MVC on IIS6

OK - this seems to be a problem that many people have run into. But for IIS 6 it seems to be some additional configuration that is needed in order to get ASP.NET MVC up and running. First you’ll need to find the version of IIS. Yes, I know, it should be simple, but it’s not… Here is how you do it. Then, when you know which one, and if it’s IIS6 or lower (i presume…) you can follow along nicely in this article by Gopinath - who saved my butt.
Read More

Red Beads and Limited WIP Society

I attended the second Limited WIP Society (Sweden) gathering. It’s a bunch of people that has taken liking in Kanban practices. This evening David J Andersson joined us and he gave a very interesting presentation on Kanban teams reach CMMI 5 level, i.e. ranked as very mature. This is, apparently, not repeated by team doing other agile methods. OK – during the second half me and Joakim Sundén presented the Red Bead Experiment. Well played it out I think would be a more appropriate word for it. It’s a game that aims to drive home the point Dr. W. Edwards Deming - “a bad system will beat a good person every time” If you haven’t seen it before there is an excellent recording with Benjamin Mitchell and David Joyce.
Read More

Saturday of brass band, presenting and fun

I am on my way home after presenting at two concerts with Windcorp Brass Band. Exhausted but very happy. It all went down quite well. The band was in excellent form and played well throughout the evening and their rendition of The Cossack will stay in my mind forever. Also the thing surrounding the concert was, as always, good. My own part in the whole thing went well, even though I had missed the fact that the concert didn’t had a intermission. Quite embarrassing when I told the audience that a break was coming up, just to then call them back in their seats. Well, well – it became a joke and was quickly forgotten. I love doing this! If there was a way to make a living presenting concerts I would take it immediately. Thank you WindCorp Brass Band, Alex, Swedbank and all my friends in Gothenburg for an...
Read More

Scott Guthrie in Stockholm

I’ve been attending a full day of presentations by Scott Guthrie, who seems to be involved in most things interesting at Microsoft. The output from this guy is just amazing; blogging, products, teams and thoughts… A lot. I really looked forward to hearing him live and specifically what he had to say about ASP.NET MVC 2. It was all good – even though the tempo in the presentation was breakneck speed. Many of the new technologies from Microsoft nowadays aims to be extensible and possible to tweek to your preferences. From ASP.NET MVC 2 I especially like The xxxFor HTML-helper methods The EditorFor helper methods Areas (which I understood for the first time during this presentation, thank you Scott). I’m now enjoying his presentation on Silverlight 4, which will be my introduction to Silverlight… This was a great day that learned me a lot and also made me realize what...
Read More