Author Archive

My custom Visual Studio’s environment settings

Wednesday, November 19th, 2008

I’m using non-standard Visual Studio environment settings and I’ve decided to share them with other developers on the web. I hope that everybody is familiar with how to import and export VS settings but for those who do not know I’ll write few words.
First of all you need to start your VS :). Then you [...]

I have new theme applied to my blog

Tuesday, November 18th, 2008

Some time ago, I saw that my blog doesn’t look well on browsers different from Mozilla. As it was clear it was because of the theme used.
Yesterday, I looked for a theme that I’ll like and that it will look more or less good at least on IE6, IE7, Mozilla and Chrome. And I choose [...]

Enterprise Library 3.1 installation problem

Monday, November 17th, 2008

I needed to install Web Client Software Factory (WCSF) on one old machine which I decided to use for some tests. As far as WCSF needs Enterprise Library 3.1 I’ve decided to install it. And I ran into a problem.
Firstly, let me say what I have installed on the machine. OS - Windows XP SP, [...]

The power of unit tests

Monday, November 10th, 2008

What i’d like to share with you is that the unit tests are really power and they make developers life much easier. I saw a lot of developers that said that unit testing is just a spent time in not right direction (developing code). As I remember in the beginning I also was in this [...]

I’m annoyed of how developers used to organize loops…

Tuesday, November 4th, 2008

Today, I browse the code of one of our projects in order to look through a problem I discussed with another developer and I saw a loop which irritated me. The sample of what I’m talking about is below.

object obj = null;
foreach (int item in array)
{
// initialize the object if the first pass
if (obj == [...]

Execute unit tests against DB and keep it unchanged.

Monday, November 3rd, 2008

In my old post I explained how you can create a NUnit add-in for reverting changes in database made by unit tests. In this add-in I use TransactionScope class to open a MSDTC transaction and rollback changes made by the unit test. I found this approach time consuming and unpredictable (sometimes my tests doesn’t work [...]