Author Archives: Torleif

About Torleif

Was born in Hønefoss (Norway) the 20th of January 1985 around 16:05. I am a Seventh-Day Adventist, a software developer and a hobby juggler.

Interlude follow-up

My blog has been a bit dead for a while, so thought I could (hopefully) kick it off again with a little follow-up on my recent Interlude post. I have now been at LifeStyleTV since the middle of February, and … Continue reading

Posted in Personal | Tagged , , | Leave a comment

Disappearing color labels in Mac OS X

Had a tiny fight with Mac OS X the other day, like I often do. This time it was color labels. You probably know (if you have used Mac OS X at all) that you can color label your files. … Continue reading

Posted in Technology | Tagged , | 3 Comments

Interlude

Not much is happening at the moment. Well, actually quite a bit is happening. It’s just that I find myself in a rather non-eventful interlude of some sort. Last Friday (January, 29th) I had my last day at SMS Development … Continue reading

Posted in Personal | Tagged , , | 5 Comments

How to check for duplicates

Say you have an IEnumerable<t></t> of some sort and you want to check if it contains any duplicates. How do you do that?

Posted in Software Development | Tagged , , , | Leave a comment

Test-Driven Development: By Example

I earlier wrote about the book, The Art of Unit Testing, which I finished a while ago. That book was very good and was focused on how to write good unit tests. It also mentioned Test-Driven Development, TDD, but not … Continue reading

Posted in Reviews, Software Development | Tagged , , , | Leave a comment

How to test asynchronous events

The other day I had to test that an event was raised after some asynchronous work had been done. And since I currently am a total test newbie, this was a new thing for me. Say we have this simple … Continue reading

Posted in Software Development | Tagged , , , , | Leave a comment

Generics and checking for null

When writing C#, in Visual Studio, using generics… have you ever tried checking for null? I have always found that a bit of a hassle. Say we have this method which returns the subject if it is not null, and … Continue reading

Posted in Software Development | Tagged , , | Leave a comment