2006-08-03, 00:50
The other day I was about to set up a new Visual Studio project for a control I needed. It was a control well suited for TDD so I added the needed references for that.
Since I have been doing TDD for a while now using NMock 1.0 I felt the need to upgrade myself and take a look at and learn NMock 2.0.

But when I search the web I landed on an article on CodeProject that discussed a somewhat different approach to mocking and TDD.

The argumentation in the article was about how TDD often leads you to make a somewhat more complex design (with factories and stuff) that you aint gonna need (YAGNI). This design is needed since the mocking frameworks only mock interfaces and the mocking instances must be handed to the class under test in some way.

So now to the interesting part. The mocking framework introduced in the article wasTypeMock.Net and it allows classes to be mocked.
I plan to check this out and get an opinion of if this is a good idea or not. I will get back on the subject. But it sure looks interesting since you will be more able to design for functionality than test. And that is something I reacted against doing TDD in the past.

4 comments ( 40 views )   |  0 trackbacks   |  permalink   |   ( 3 / 883 )

Blast from the past 
2006-07-30, 23:50
On my second holiday week the mobile phone suddenly sounded the SMS signal. No worries! A friend has sent a greeting perhaps? No, beware. It's your past haunting you...

For about six years ago I did a "gig" for a consulting firm where I developed a Recipe system for the "Felix Tomatketchup". The system has been in production ever since. Now the SMS told me there was a problem and that I should call a certain number.

After getting hold of the person at Procordia who runs the plant where the system is installed, I was told that the problem had to be solved quite promptly. Could I perhaps help them with that??

Well darn, yes! So me and my wife and child got a payed vacation to Blekinge where the plan is located. We did Jämjö by night and stopped by Karlskrona on the way back home to Höllviken.

The problem was some corrupt dBase files that I replaced and the problem was solved in about an hour on the first night...
3 comments ( 24 views )   |  0 trackbacks   |  permalink   |   ( 3 / 1198 )

2006-07-26, 19:20
Just had to make an entry to post a picture of my little daughter Ida.
So here we go. Here she is 3 months old, standing with just a little help from her mother Jenny ::)

4 comments ( 41 views )   |  0 trackbacks   |  permalink   |   ( 2.9 / 1137 )

The Blog itself 
2006-07-26, 10:21
This blog is powered by SimplePhpBlog. It was really easy to install. Thx to Magnux for finding it for me even though he isn't using this blogengine...

The Mungoose is my old C64 Hacker name. And for those of you that don't know what C64 is... well you're just too young :;)

Well since this post is in english, (rather what we in Sweden call "skolengelska") I better change the language of the blog's menus to english...
2 comments ( 22 views )   |  0 trackbacks   |  permalink   |   ( 3 / 1039 )

En liten start 
2006-07-26, 00:23
Det är nästan ett måste att ha en blog nu för tiden. Så här är min.

Det som drabbar en efter den initiala installationsfasen då man lätt drar ner själva blogverktyget och kastar upp det på sin website är den berömda skrivkrampen... Vad skall jag skriva? Nåväl det är ganska simpelt. Varför bloggar jag överhuvudtaget? Jo för att föra en liten dagbok och dialog över nätet. Så mitt primära syfte är att sammanfatta och dela med mig av de erfarenheter jag får genom att utforska .NET 3.0.

Ja, just det! Den närmaste tiden kommer innebära stora förändringar för oss programmerare framförallt vad gäller den nya programmeringsmodell som kommer med WPF (Windows Presentation Foundation). Så därför kan det vara intressant att lägga upp sina funderingar så man kan återgå till dem och kanske t.o.m få kommentarer av andra utvecklare. Då borde jag ju skriva på jag avstod från det för att komma igång med det här första inlägget.

Nåväl en liten start, eftersom jag kollade upp en av mina lågriskfonder (någon räntefond med någon procents avkastning) och roades av fondförvaltarens utseende så kan man väl bjuda på det skämtet (och dessutom prova att lägga in en bild). Så kolla in den här snubben:

Jag antar att jag får söka mina pengar på Kaymanöarna eller nåt.

Så ha det!
1 comment ( 13 views )   |  0 trackbacks   |  permalink   |   ( 2.9 / 1118 )