Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any formal work attempting to measure ease of maintenance for complex programs, comparing at the programming language level? Are there any formal measures for ease of maintenance, at any level?

I'm looking for a method to obtain formal measurements of ease of maintenance (or any related work) for a pet project.

share|improve this question
Cyclomatic complexity, perhaps. CC and "ease of maintenance" are inversely related; the more complex code is, the less easy it is to maintain. – Robert Harvey Sep 17 '11 at 5:19
I saw a link on reddit earlier this summer pointing to a paper showing that of all complexity measures, the one that had the strongest correlation to the number of bugs was lines of code. Other more complex measures were not good indicators of number of bugs. A shame I can't find the paper again, but I'll keep looking. – Joh Sep 17 '11 at 8:01
I found the paper again: – Joh Sep 26 '11 at 18:11
up vote 1 down vote accepted

There appears to be some work on it in the form of analysis of Domain Specific Languages, the paper is rather old. Also some more work on C/C++. From a brief scan-through of each paper, it doesn't appear that there's a definite answer but it is being worked on.

share|improve this answer
Disheartening :( – blueberryfields Nov 25 '11 at 4:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.