- Sep 29, 2004
- 18,656
- 68
- 91
So, I have to figure out a way to get this out of our project before the coding effort starts. It is a C/C++ project.
It's easy to spot bad code with my eyes and formal peer review. This is the way to find convoluted code. Not some academic paper that was written and for some reason now accepted. Not to mention that it adds more work for in terms of quality checks. We'll probably have to document that we ran the cyclomatic complexity metrics on each unit. And what happens later when things go wrong. It's just a waste of time.
From experience (last java project), I find the numbers that come out from cyclomatic complexity metrics to be all over the place. They often makes no sense. I can find well written code that scores horribly by cyclomatic complexity metrics and horrible code where cyclomatic complexity metrics say it is great.
So, what are your thoughts on cyclomatic complexity metrics in practice? Pointless or valuable?
Of course, I'm dealing with people that have a software background, but they are not software leads or developers. They are typically project leads that want to micro-manage. YES! They do not know how to design stuff and if you read a paper on cyclomatic complexity metrics, it sounds great! How to convince them otherwise? These are people that are concerned about how we wil lstore things in CVS 3 months before we start coding.
It's easy to spot bad code with my eyes and formal peer review. This is the way to find convoluted code. Not some academic paper that was written and for some reason now accepted. Not to mention that it adds more work for in terms of quality checks. We'll probably have to document that we ran the cyclomatic complexity metrics on each unit. And what happens later when things go wrong. It's just a waste of time.
From experience (last java project), I find the numbers that come out from cyclomatic complexity metrics to be all over the place. They often makes no sense. I can find well written code that scores horribly by cyclomatic complexity metrics and horrible code where cyclomatic complexity metrics say it is great.
So, what are your thoughts on cyclomatic complexity metrics in practice? Pointless or valuable?
Of course, I'm dealing with people that have a software background, but they are not software leads or developers. They are typically project leads that want to micro-manage. YES! They do not know how to design stuff and if you read a paper on cyclomatic complexity metrics, it sounds great! How to convince them otherwise? These are people that are concerned about how we wil lstore things in CVS 3 months before we start coding.
