Trond-Eirik is rambling on about stuff

General stuff about system architecture and development

Friday, September 07, 2007

Visual Studio 2008

I was at MSDN Live in Trondheim yesterday. One of the sessions was about Visual Studio 2008 Team Systems.

It seems like MS is putting some quite nice stuff into this product. They have for example started to add support for code metrics in to the Team edition of VS 2008.

Metrics is a well known method of analyzing code and code complexity based on statistics extracted from the code. Typical information gathered is reference counters, lines of codes, number of ifs, loops and so on. Based on this information it's possible to start making some theoretical guesses about the quality of the code.
VS 2008 Team System now has added a client tool that does this and displays this information to the developer. This can then be used to evaluate the complexity of the code and give some ideas about areas where refactoring might be wise.

I do absolutely not think that this is a golden bullet for application architecture or code quality. However I do believe that it might help to put focus on limiting complexity in code and coupling between modules.

I'm quite excited about getting VS 2008 Team System installed and do some more evaluation of this and how it might work in real life.

Labels: , , ,

2 Comments:

At 1:41 AM, Anonymous Anonymous said...

Hi,

Totally agree that code metrics and static code analasys is a great way to improve the code quality and overall architechture.

If you want to get started with this on Visual Studio 2005 NDepend ins an EXCELLENT tool. It gives you all kinds of metrics, like coherance, cyclomatic complexity, inferent and eferent coupuling and alot more.

You can allso integrate NDepend into your build process and execute CQL queries (code query langauge) and break your build if some one commits code that's to complex, doesn't contai comments etc.

Check it out over at http://ndepend.com/

Hope you had a good time at MSDN Live!

 
At 2:22 AM, Blogger TEK said...

Thanks for the input Jonas!
I had a great time at MSDN (at least the first half).
Very nice presentation!

 

Post a Comment

<< Home