I recently installed the Eclipse Metrics Plugin and have exported the data for one of our projects.
It's all very good having these nice graphs but I'd really like to understand more in depth what they all mean. The definitions of the metrics only go so far to telling you what it really means.
Does anyone know of any good resources, bo...
In one of his blog articles, the proprietor of this web site posed this question to the reader, "You're automatically measuring all the queries that flow through your software, right?"
How do you do this? Every line of code that makes a query against the database is followed by a line of code that increments a counter? Or, are there t...
Some people claim that code's worst enemy is its size, and I tend to agree. Yet every day you keep hearing things like
I write blah lines of code in a day.
I own x lines of code.
Windows is x million lines of code.
Question: When is "#lines of code" useful?
ps: Note that when such statements are made, the tone is "more is better".
...
Just like human beings have vital signs (e.g. temperature, heart rate, blood pressure, and breathing function); what vital signs are essential to collect and track to aid in the evaluation of the overall health of a project?
No clear winner yet based on the voting to date (June 2009).
...
What's is a good ratio for the number Classes to Lines of Code for an Object-Oriented language (say C++,C#,Java and their likes)?
Many people, including managers, like the traditional LOC (lines of code) metric to measure the complexity of software, while many hard-boiled Object Oriented developers will say LOC is worthless its Class co...
Code lines per file, methods per class, cyclomatic complexity and so on. Developers resist and workaround most if not all of them! There is a good Joel article on it (no time to find it now).
What code metric(s) you recommend for use to automatically identify "crappy code"?
What can convince most (you can't convince all of us to some c...
I would like to know if somebody often uses metrics to validate its code/design.
As example, I think I will use:
number of lines per method (< 20)
number of variables per method (< 7)
number of paremeters per method (< 8)
number of methods per class (< 20)
number of field per class (< 20)
inheritance tree depth (< 6).
Lack of Cohesion ...
I would like to track metrics that can be used to improve my team’s software development process, improve time estimates, and detect special case variations that need to be addressed during the project execution.
Please limit each answer to a single metric, describe how to use it, and vote up the good answers.
...
I have a SVN repository for my project; it keeps code, docs, graphs, etc. Everything related to the project is there and versioned. However, I am trying to get some kind of intelligent stats for my code. The stat program I am using is StatSVN - they seem to be best of breed as far as I can tell. However, I am getting results for old fil...
Recently our company has started measuring the cyclomatic complexity (CC) of the functions in our code on a weekly basis, and reporting which functions have improved or worsened. So we have started paying a lot more attention to the CC of functions.
I've read that CC could be informally calculated as 1 + the number of decision points i...
I am using DevPartner (for Java) with pretty good results. However, there's a "metric publishing" utility which I can't use.
The problem is that said utility (pubmetrics.exe) asks for a site/port/user/password combination which I don't know. It pre-fills the site/port data with the localhost and thus I assume it's trying to contact the...
Someone told me about swamp diagrams explaning that they were useful to predict code quality by measuring the rate of incoming defects and outgoing fixes on a given product.
Unfortunately, I am unable to find additional information on those diagrams and I am wondering if it is a jargon term specific to one company.
Can you explain wha...
While LOC (# lines of code) is a problematic measurement of a code's complexity, it is the most popular one, and when used very carefully, can provide a rough estimate of at least relative complexities of code bases (i.e. if one program is 10KLOC and another is 100KLOC, written in the same language, by teams of roughly the same competenc...
One of the companies required from it's prospective employee to give the number of lines of code written in the life time in a certain programming language like Java, or C#. Since, most of us have a number of years of experience in different projects in multiple languages and we hardly keep record of this, what would be the best approach...
Most programming houses / managers i know of can only define quality in terms of the no of bugs made / resolved in retrospect.
However most good programmers can innately sense quality once they start meddling with the code.(right?)
Has any programming houses that you know of, successfully translated this information into metrics that...
Do you know a simple script to count NLOCs (netto lines of code). The script should count lines of C Code. It should not count empty lines or lines with just braces. But it doesn't need to be overly exact either.
...
Does anyone have metrics on the utility of formal Unit Testing? I see a lot of attention being paid to unit testing tools and I was curious why?
I stopped formal unit testing over 5 or 6 years ago and the net gain in productivity seems quite high. I stopped unit testing because I noticed that it never caught anything - let alone anyth...
I'd thinking about using an external web site performance tool to monitor the load time of our site through time.
I found webmetrics.com. Seems pretty ok with email reports etc.
Any other suggestions? I'm looking for biggest value / $ :)
...
I'm using the FontMetrics.getHeight() to get the height of the string, but it gives me a wrong value, cutting off the descenders of string characters. Is there a better function I can use?
...
Duplicate of http://stackoverflow.com/questions/353380/what-is-a-line-of-code
Should you count end-lines? Should you base it on delimiters in your language, such as semi-colons? Should you count all non-whitespace characters then divide by the average number of non-whitespace character per line?
Maybe the concept of "lines" isn't even ...