- Greetings! I am Torleif Berger, 25 years old, a Seventh-Day Adventist and currently working as a Software Developer. Have a look around c'',)
Category Archives: Software Development
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
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
Project Euler: Problem 25
The Fibonacci sequence is defined by the recurrence relation: , where and . Hence the first 12 terms will be: … The 12th term, , is the first term to contain three digits. What is the first term in the … Continue reading
Project Euler: Problem 16
and the sum of its digits is. What is the sum of the digits of the number ?
The Art of Unit Testing
Have you gone through three years of computer science bachelor degree fun (or anything similar) and pretty much not heard a word about testing? Or have you heard from all your teachers that testing is extremely important, but never learned … Continue reading
WordPress plugins I use
Thought I could share what plugins I use. I am curious to know what others are using, so it would be kind of rude to not share what I use So without further ado, here they are:
How to delete WordPress post revisions
Having revisions on my posts is nice I suppose. But I was starting to get a bit annoyed with the increasingly long list of revisions in each post. And they really did get long. Mainly because I am in a … Continue reading
















