Solved

Software Dependency Metric

Posted on 2015-01-05
6
140 Views
Last Modified: 2015-01-07
Heyas,

I know their is metric termed Cyclomatic complexity which measures a software module's structural complexity. I would like to know if their a metric to measure the number of dependencies (DLL Calls, SQL Server Queries etc) a software module has to operate.

Thank you.
0
Comment
Question by:Zack
  • 3
  • 3
6 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 40534202
Visual Studio code metrics can perform checks on cyclomatic complexity.

Code Metrics – Cyclomatic Complexity
http://blogs.msdn.com/b/zainnab/archive/2011/05/17/code-metrics-cyclomatic-complexity.aspx
0
 

Author Comment

by:Zack
ID: 40534392
Hi Bob,

Thank you for that measures Cyclomatic Complexity, is their any metric to measure the amount of dependencies eg. libraries, dll etc a software module depends upon.

Thank you.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 40534565
That'll teach me to read the entire question.  Are you asking about assembly reference dependencies?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:Zack
ID: 40534763
Hi Bob,

Kind of, whatever dependencies the software module requires to run successfully. For instance the .dll it points to or calls and if connects to SQL database  etc. I hope this clarifies.

Thank you.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 40535758
We need to be clear about your requirements.  Here is an image of a dependency graph, from NDepend, which shows calls from methods.

Dependency Graph
http://www.ndepend.com/docs/visual-studio-dependency-graph#Dep

I am not sure what you are looking for with "if connects to SQL database".  I haven't seen any code metrics that would measure that.
0
 

Author Comment

by:Zack
ID: 40536695
Hi Bob,

That's fine thank you very much for the link, I have been trialling this software for the past couple of hrs looks quite promising.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
draw a Christmas tree by using a nested loop? 26 63
Difference between List and Array in Python 5 71
C# Gridview 1 33
SQL Query Help Top 1 and Distinct? 6 27
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question