# Tagged Questions

The tag has no usage guidance.

63 views

### how to measure defects per KLOC

I have been reading on the internet about the metric "number of bugs per 1000 lines of code" and what would be a good number. However, I wonder how someone would compute such a metric? The reason a ...
75 views

### Calculating a score and a breakdown of the score in different places - should I use the same methods?

I am creating a plugin that uses a metric to determine a score on one page and allows the user to click through to see a more detailed breakdown of the score on a separate page. The trouble is: I can'...
75 views

### How to perform summary analytics on production databases?

I want to use production data to generate "user activity" metrics. My thought is to set up a cron job that regularly reads production databases to summarize user activity and then stores the results ...
82 views

### Measuring new capabilities in a software project and comparing vs incremental capability improvement

Given two software projects X and Y relating to some Product A - Project X offers some new capabilities. Project Y offers incremental capabilities. Y's features can be measured: we know its ...
88 views

### Summarizing time spent on UI tests

I was working with a team on a web-based software. We have written ~70-80 Selenium test for the product. Mainly happy-path tests with some regression ones for bugs reported by users. It was the first ...
188 views

### Why in cyclomatic complexity we add 1 for operators within a condition?

I know that basically, CC can be computed as number of decision + 1. In addition, every logical operator in the condition causes CC to increase by 1. But why? Having the code if(A || B || C) else... ...
115 views

### Does it make sense to express reliability as a ratio of number of tests and system failures? [closed]

I have seen a reliability of the system expressed like this: Rel=No of tests executed / Sum of crashes or other critical events Does it make sense and what actually is the output?
208 views

### Is there a metric that can be equated to complexity in laymens terms? [closed]

Often times users cannot comprehend the complexity of software. They think that because a problem is easy to describe then it is easy to solve. I want to equate the complexity of a "simple program" ...
252 views

### How to measure team productivity over time using consistent story sizes?

How do I measure team productivity over time using consistent story sizes? To take a simple example, if I can do a story every two days, then I can do five stories in a two-week sprint. By definition ...
355 views

### Are there metrics, like in other professions, that can be used to measure whether a programmer is considered experienced? [closed]

Driving instructors (at leas in Germany) often mention 100.000 km driven as a reference point where a driver is considered experienced. Is there a similar number for programmers? For example, how ...
655 views

### Is it ethical or even legal to track user data/metrics using IP [closed]

This one is a bit tough. It is publicly available information, is it not? But it's can also be used maliciously. So is it legal/ethical to store and/or gather information on users based on IP? It's ...
1k views

### Cyclomatic complexity when calling same method multiple times

Thanks to a question over at Code Review I got into a little disagreement (which essentially is an opportunity to learn something) about what exactly the Cyclomatic Complexity is for the below code. ...
759 views

### Easily add metrics to measure java code usability

I'm trying to create a process for better understand what's happening in my code. I want to create metrics to automatically give my answers about simple or complex questions like: How many times a ...
221 views

### How can we track how well we're preventing and avoiding security vulnerabilities?

It's pretty easy to track when we fix security vulnerabilities in existing code. But to make sure the whole team is staying on their toes about writing secure code, I'd like to also track how well we ...
10k views

### Cyclomatic Complexity Ranges [closed]

What are the categories of cyclomatic complexity? For example: 1-5: easy to maintain 6-10: difficult 11-15: very difficult 20+: approaching impossible For years now, I've gone with the assumption ...
639 views

### Software failure due to maintenance oversights example/case study

I'm doing some investigation into the role of maintenance in software development and the use of metrics within the development cycle. What I am asking is for a point in the right direction or ...
5k views

### What is a good measure of testing/tester efficiency?

I am about to participate in a discussion with management regarding measuring our testing efficiency as a QA organization. The main reason behind this is that half of our team is contracted out and ...
12k views

### Is the average number of bugs per loc the same for different programming languages? [closed]

I have been told that the average number of bugs/defects per line of code is "constant" for different programming languages. 10 KLOC of Ruby would have the same number of bugs as 10 KLOC of c++. The ...
576 views

### Why is the cyclomatic complexity equal to two for a simple Hello World?

I would have two questions related to cyclomatic complexity: Can I use this metric for a whole app? I guess I cannot, as it would be incredibly large number, considering functions calling functions ...
103 views

### Statistical Software Quality Control References

I'm looking for references about hypothesis testing in software management. For example, we might wonder whether "crunch time" leads to an increase in defect rate - this is a surprisingly difficult ...
4k views

### What is logical cohesion, and why is it bad or undesirable?

From the c2wiki page on coupling & cohesion: Cohesion (interdependency within module) strength/level names : (from worse to better, high cohesion is good) Coincidental Cohesion : (...
1k views

### Are CK Metrics still considered useful? Is there an open source tool to help?

Chidamber & Kemerer proposed several metrics for object oriented code. Among them, depth of inheritance tree, weighted number of methods, number of member functions, number of children, and ...
237 views

### Severity and relation to occurence - priority?

I have been browsing through some webpages related to testing and found one dealing with the metrics of testing. It says: The severity level of a defect indicates the potential business impact ...
533 views

### What kind of metrics, if any, can be collected from requirements development?

We elicit requirements from our product stakeholders by creating and refining user stories in monthly sprint planning meetings. This includes defining use cases, acceptance criteria, and identifying ...
3k views

### Data architecture for event log metrics?

My service has a large ongoing number of user events, and we would like to do things like "count occurrence of event type T since date D." We are trying to make two basic decisions: What to store? ...
4k views

### What is a normal “functional lines of code” to “test lines of code” ratio?

I'm pretty new to TDD approach and my first experiments say that writing 1 line of functional code means writing about 2-3 lines of testing code. So, in case I'm going to write 1000 LOC, the whole ...
1k views

### Is automatically checking code quality via metrics possible?

For several years now I am a big fan of using static code analysis tools for checking the source code quality. We are mostly doing C# development so NDepend was the best way to go for me. Most of the ...
5k views

### Can defect containment metrics be readily applied at an organizational level when there is only a consistant organizational process framework?

Defect containment metrics, such as total defect containment effectiveness (TDCE) and phase containment effectiveness (PCE), can be used to give a good indicator of the quality of the process. TDCE ...
193 views

### What are approaches for analyzing the cost-benefits of a development methodology?

There are many development practices (TDD, continuous integration, cowboy-coding), principles (SOLID, layers of abstraction, KISS), and processes (RUP, Scrum, XP, Waterfall). I have learned you can't ...
378 views

### How to measure external quality of software

For my thesis, I am doing research into the characteristics of Behavior Driven Development (BDD). One of the BDD claims is that by specifying the requirements in a ubiquitous language together with ...
3k views

### industry averages for time spent on maintenance

A manager recently announced that were were spending far too much time fixing bugs. I guess he thinks we should write perfect code all the time (whilst still hitting those impossible deadlines of ...
974 views

### Is Usage Tracking esoteric or state of the art?

There are several products for tracking the usage of your application. I know at least 10 offers. They tell you which features were used more often than others. Thus, you can identify features that ...
1k views

### Personal Software Process (PSP1)

I'm trying to figure out an exercise but it doesn't really makes to much sense.. I'm not asking someone to provide the solution. just to try and analyse what needs to be done in order to solve this. I'...
7k views

### How to determine the effectiveness of a code review process?

We've introduced a code review process within our organisation and it seems to be working well. However, I would like to be able to measure the effectiveness of the process over time, i.e. are we not ...
1k views

### How much code should I be responsible for?

Through colleagues and exit interviews, I have heard that at my small company I am "responsible" for anywhere from 3-10 times more code than I would be at another job. I'm trying to look for some sort ...
844 views

### How to measure when a software project is complete?

I have very limited experience in software project management roles, and I was asked this question by another engineer and I was sort of stumped. How do I measure when a software project is complete? ...
650 views

### What kind of metrics should I collect for a website/web app

I have a website that allows users to register for accounts, login, and renew an annual membership fee. They can also update their personal profile, their personal profile, look at a list of their ...
706 views

### Is there really a relationship between number of people assigned to a project and the number of defects?

Here is a quote from a training manual at work regarding SLIM and software estimation: Notice also, there is a correlation between Effort and Defects. This means, the more people there are ...
3k views

### Is there any work into the application of the Halstead complexity measures to determine software quality?

In 1977, Maurice Howard Halstead introduced his complexity measures for software systems, which included measurements of the program vocabulary, program length, volume, difficulty, effort, and an ...
3k views

### Standard/Proper way of counting lines of code?

How should I count the lines of code in a project? In C++ for example, should I count the lines of the header files with my class definition? Should I count the header of a (non standard) library I ...
4k views

### Should organizations penalize developers for the amount of defect reports filed against code they worked on? [duplicate]

Should organizations penalize developers for defect reports filed against their work products? I was having a discussion with my friend where he asks if a manager taking the number of defects filed ...
3k views

### What criteria should be used to determine a programmer's salary? [closed]

Recently, I was a part of a discussion about which criteria should be used when determining a salary for a programmer: arguments varied from "it is a matter of employer's choice" to other arguments ...
2k views

### Objective Metrics for Software Quality [closed]

There are various types of quality that can be measured in software products, e.g. fitness for purpose (e.g. end use), maintainability, efficiency. Some of these are somewhat subjective or domain ...
732 views

### Metrics: Comments vs Documented API

I've been asked to run some code metrics in order to assess the quality of the code. One of the metrics was vaguely specified as "comments". I ran Sonar on my code, and while I got 10% on the "...
1k views

### How do you demonstrate performance in paired-programming environments?

Performance reviews have come up recently at my work, and I was put in an interesting position. Our team does a lot of pair programming, which has a tendency of averaging out the skill differences ...
3k views

### How can I estimate the value of an open-source project?

I am trying to generate a metric for a company cost savings goal. To do this, I want to estimate the savings we realized by using an open source web application rather than building it from scratch or ...
1k views

### Acceptable # Lines of Code for Projects to be Presented to Interviewer? [closed]

I'm going to graduate soon and I've been thinking. I have a few really small projects/scripts (~100-200 LOC) that I made on my free time and I have them on Github. I was wondering if they are "worthy" ...
7k views

### What quality standards to consider for software development process?

i'm looking for metrics/standards/normatives to evaluate a given "Software Development Process". I'm NOT looking to evaluate the SOFTWARE itself (trough SQUARE and such), i'm trying to evaluate ...