My first Lunch & Learn

Today I was so bold as to cram all the developers on my current project (there are four of us) into a small conference room during the lunch break and show them a screencast about agile development from dnrTV while we enjoyed our food. It was a fun little experiment and I think they appreciated the initiative, but the dnrTV videos are usually one hour long which, it transpires, is a bit too muc... [ Read full article ]

13 March 2008  0 Comments

How to unit test an EPiServer site?

I'm currently trying to unit test some classes in my EPiServer site. All I'm getting when running a test against a method that requires database access (ie ALL OF THEM) the testing framework, be it Microsoft's own or NUnit, it just tries to find a web.config in the /bin/Debug of the unit test project. Like this: System.IO.FileNotFoundException: Could not find file 'C:\[PathToUnitTestProject]\bi... [ Read full article ]

18 January 2008  2 Comments

Labels and branches in Team Foundation Server

(This post comes with a TLDR warning) In one project, we’ve just moved from Visual Source Safe (VSS) to Team Foundation Server (TFS) and its source control. The most confusing thing to me so far has been the difference in how labels behave. Whereas in VSS you could mark your files with a label and then easily see what changes have been made to them afterwards in the history, the TFS labels don’... [ Read full article ]

05 December 2007  1 Comments

The ”as” operator in C#

I don’t know if it’s just me, but I don’t see people using the ”as” operator in C# a lot when I read code. It’s a shame, because it’s really nifty. For example, you can use it like this when you retrieve something from the cache: string s = Cache[cacheKey] as string; if(s != null) {     return s; } else {     // Set s to a new value     Cache[cacheKey] = s;     return s; } This way you don’t ha... [ Read full article ]

04 December 2007  2 Comments


My first look at open source code

I’m toying around a bit with Subkismet . It’s a great little tool for keeping comment spam at bay, which is a big problem at the EPiServer site I’m currently working on. It’s also the first open source code that I’ve ever looked into, developed by Phil Haack et al. You can find out more at the project’s CodePlex site . It’s great fun to see how other people use unit testing, inheritance and so... [ Read full article ]

03 December 2007  1 Comments

About me

I am a 27 years old consultant at Sogeti in Stockholm, Sweden. I am working mainly with developing solutions in EPiServer, which I've been doing since 2006. I also write at Microserf and you can e-mail me at this address: nospam@localhostpeter.microserfnospam@localhost@nospam@localhostgmail.comnospam@localhost.



Tag cloud

EPiTrace logger