Dot Net Perls
 

Visual Studio 2008 Review

by Sam Allen

Problem

Microsoft shipped Visual Studio 2008 late last year in 2007 as an RTM product. I had been using Visual Studio Express editions. Explore some features of VS 2008, and also some drawbacks.

Solution

Visual Studio 2008 really shines with .NET 3.5. When moving from C# Express 2005, I was impressed with how the software was integrated into one program. When I was working on C++ interoperability in the Express version, I had to use two programs, but with Visual Studio, I could do it all together.

My performance observations

I very soon noticed some impressive performance improvements in opening projects in the new version, which made me happy. Even my smaller projects would open slowly before, but now they open quite fast. Unfortunately, there were still some issues with performance.

Does it crash?

Yes. Visual Studio 2008 has crashed on me quite a lot, but not during normal use. Using SQLCE databases within Visual Studio was quite bad and would often cause hangs and crashes. Hangs are even more frequent and occur in situations such as when a program ends up in an infinite loop.

IntelliSense

IntelliSense is in my opinion the most important part of Visual Studio 2008 other than its compilers. IntelliSense uses fairly sophisticated algorithms to show you completions and suggestions. After a while, you come to rely on it and using Notepad is painful.

Refactoring notes

Refactoring is necessary for an object-oriented language such as C#. I would like to mention some problems with the Refactor feature here. Here are some issues I have found with Organize Usings, which you activate by right-clicking on the using statements at the top of a file.

Feature Some problems with it
Organize Usings >
Remove Unused Usings
This is good but it will strip away all the usings in many files. I would like to have it retain the most common or important ones. A suggestion is Reset Usings to the default.
Organize Usings >
Sort Usings
If there is a C-style comment at the top of a file, this will sometimes move it to the middle of the using statements.
Organize Usings >
Remove and Sort
Combination of above

More on refactoring

Refactor > Rename is the most useful Refactor method to me. You can use this by right-clicking on a variable name and then selecting the Refactor > Rename... item. Again, here I have some problems with the performance of Refactor in ASP.NET so that I am sometimes scared to use it.

Paste formatting

Visual Studio can reformat pasted code very well and that is great. However, I have noticed some problems with it when you paste in multiline C-style comments. For example, when you paste in the following code, it will not be indented properly.

/*
 *
 * This is a comment that will not be formatted properly on paste.
 *
 * */
public static int Okay()
{
    return 2;
}

ASP.NET features and my concerns

I feel ASP.NET has been neglected somewhat in Visual Studio 2008. Of course, I do feel that it is still an excellent environment, but not as good as the Windows Forms version. As I have stated, the Refactor performance is abysmal in my setup.

Confusing things

Here I will mention some parts of Visual Studio that I found unnecessarily confusing. I may not have better ideas for the features, but they are still things that should be worked on.

Less helpful, more horrible

Visual Studio's help system is quite awful and should simply be avoided. The rendering flickers and it is slow. I do not feel having an integrated web browser is useful for Visual Studio, particularly as people who use Firefox will be disappointed with its performance.

Conclusion

I am happy with Visual Studio and feel it is an excellent tool, despite some of the issues I listed above. This document won't help you decide whether or not to upgrade, but it may offer some insight into how the software works and some of its weaknesses.

Final suggestion

I would like to see a wizard in Visual Studio that will walk me through configuring all the toolbars and panels in more detail. I find managing all those areas quite difficult. I think this sort of wizard could augment IntelliSense and advance the environment's progress towards better usability.

Visual Studio 2008 SP1

In the first part of June 2008, after about 6 or 7 months, Visual Studio 2008 SP1 beta was released. I am happy to say that Microsoft wasn't sleeping and the new product is significantly improved in many arenas. Read my impressions of Visual Studio 2008 SP1.

© 2008 Sam Allen. All rights reserved.

Ads by The Lounge