I am working on a large scale re-factoring initiative of a software product written in C#. The re-factoring process needs to be completed in a specific time-frame that looks very aggressive to me. Due to the lack of documentation, it is too complex for me to try understanding all the code that has been written so far. I was just wondering if there is any application that could give me some quantitative information on the project so I would be able to assess the complexity and maturity of various modules. Does anyone know if there are any applications that would count for instance the number of lines of code and the number of classes within a .NET assembly? Thanks in advance!
Evaluating the complexity of a software project!
suggest
Page 1 of 1
Evaluating the complexity of a software project! suggest
#2
Posted 04 December 2007 - 05:47 AM
Don't know such applications. Wouldn't be too bad to do one yourself (at least the linecount) but you should get accurate enough feeling when you just browse the files and class explorer. You'll get a general feeling of how big and complex the system is.
I am a man without a website
#3
Posted 04 December 2007 - 03:58 PM
CodeRush (which I use and highly recommend) has some nice visualizers that allow you to see things like the cyclomatic complexity of a method, its line count, etc but that's just per method. And it comes packaged with RefactorPro which sounds like it'd be very helpful for what you're doing since it's does hundreds of refactorings with just a click. I won't code without CodeRush (and I paid out of my pocket for it).
Following along the cyclomatic route I did find the following which might be helpful:
Descriptiong of Cyclomatic Complexity: http://www.codeproject.com/KB/architecture...Complexity.aspx
devMetrics Community Edition (free tool for getting metrics on your project): http://www.anticipatingminds.com/Content/P...s/products.aspx
Following along the cyclomatic route I did find the following which might be helpful:
Descriptiong of Cyclomatic Complexity: http://www.codeproject.com/KB/architecture...Complexity.aspx
devMetrics Community Edition (free tool for getting metrics on your project): http://www.anticipatingminds.com/Content/P...s/products.aspx
Quote
Use software metrics while you code to identify areas of risk and opportunity and measure results of your work. Quickly find issues such as overly complex methods, poorly designed classes and undocumented code by using devMetrics within Visual Studio .NET.
The following software metrics are provided with both the community and professional editions. In addition, the Professional Edition allows you to create your own measure or use those developed and shared by others.
Projects – Total count.
Files – Number of files in each project and total.
Classes – Total classes in each project and overall.
Lines of code (LOC) - total lines in project and overall.
Statements - total statements in a project, overall and for each member. Provides average and maximum for projects as well.
Member functions – Total count for project and overall, average and maximum for projects.
Cyclomatic code complexity – Average and maximum for project and detailed measures for each member.
Statements per member – Average and maximum values for projects and overall.
Members per class – Average and maximum values for projects and overall
The following software metrics are provided with both the community and professional editions. In addition, the Professional Edition allows you to create your own measure or use those developed and shared by others.
Projects – Total count.
Files – Number of files in each project and total.
Classes – Total classes in each project and overall.
Lines of code (LOC) - total lines in project and overall.
Statements - total statements in a project, overall and for each member. Provides average and maximum for projects as well.
Member functions – Total count for project and overall, average and maximum for projects.
Cyclomatic code complexity – Average and maximum for project and detailed measures for each member.
Statements per member – Average and maximum values for projects and overall.
Members per class – Average and maximum values for projects and overall
#5
Posted 06 December 2007 - 02:39 AM
Quote
I see that visual studio 2008 now ships with metrics baked in.
...or Team Developer and Team Suite editions. Hard to keep track of all the goodies they're packing in.
Express, Standard, and Pro will still want to try one of the many free tools out there (I found a few others in searching).
The original poster was a spammer, but we're keeping the thread as it's got some good info.
Share this topic:
Page 1 of 1


Help
This topic is locked
MultiQuote











