Click here to Skip to main content
15,907,875 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Objective measures of code quality? Pin
PIEBALDconsult31-Mar-15 11:16
mvePIEBALDconsult31-Mar-15 11:16 
GeneralRe: Objective measures of code quality? Pin
Eddy Vluggen31-Mar-15 13:19
professionalEddy Vluggen31-Mar-15 13:19 
GeneralRe: Objective measures of code quality? Pin
Sascha Lefèvre31-Mar-15 10:58
professionalSascha Lefèvre31-Mar-15 10:58 
GeneralRe: Objective measures of code quality? Pin
pl.21-Apr-15 3:49
professionalpl.21-Apr-15 3:49 
GeneralRe: Objective measures of code quality? Pin
Pete O'Hanlon31-Mar-15 10:46
mvePete O'Hanlon31-Mar-15 10:46 
GeneralRe: Objective measures of code quality? Pin
Kirk 103898211-Apr-15 4:42
Kirk 103898211-Apr-15 4:42 
GeneralRe: Objective measures of code quality? Pin
Duncan Edwards Jones1-Apr-15 5:16
professionalDuncan Edwards Jones1-Apr-15 5:16 
GeneralRe: Objective measures of code quality? Pin
SeattleC++1-Apr-15 9:30
SeattleC++1-Apr-15 9:30 
It would help if there was a definition of code quality, but there isn't even that. Code might be defect-free (in the sense of working as designed), but still not fit for use. Code could be fit-for-use, but so complex as to be unmaintainable. There are numerous dimensions of that slippery concept called "quality".

Cyclomatic complexity doesn't measure code quality, it measures code complexity. The hypothesis is that there is a positive correlation between complexity and defect density. Most people think of measures of defects when they think about quality, but defects are not the only or even necessarily best measure of quality. Defects have the advantage that we can detect them, count them, and graph them on charts. Dimensions like maintainability are pretty squishy. And dimensions like fitness for use are measureable in principle, but so expensive to measure that most teams don't bother (and more's the pity).

With cyclomatic complexity, what you do is look for the parts of your code with high complexity and test the snot out of those parts, because bugs lurk there. You can also use cyclomatic complexity as a measure of where to focus refactoring and abstracting efforts. A team might go so far as to require special review of any code checked in whose cyclomatic complexity exceeded a particular value. But there's no number that is "too bug". Maybe the problem is just that hard.
GeneralWhy iMacs are the best dev machines PinPopular
Chris Maunder31-Mar-15 7:56
cofounderChris Maunder31-Mar-15 7:56 
JokeRe: Why iMacs are the best dev machines Pin
Tom Deketelaere31-Mar-15 8:04
professionalTom Deketelaere31-Mar-15 8:04 
GeneralRe: Why iMacs are the best dev machines Pin
ZurdoDev31-Mar-15 8:10
professionalZurdoDev31-Mar-15 8:10 
GeneralRe: Why iMacs are the best dev machines Pin
Slacker00731-Mar-15 8:15
professionalSlacker00731-Mar-15 8:15 
GeneralRe: Why iMacs are the best dev machines Pin
TheGreatAndPowerfulOz31-Mar-15 9:01
TheGreatAndPowerfulOz31-Mar-15 9:01 
GeneralRe: Why iMacs are the best dev machines Pin
Eddy Vluggen31-Mar-15 9:14
professionalEddy Vluggen31-Mar-15 9:14 
GeneralRe: Why iMacs are the best dev machines Pin
Mark_Wallace31-Mar-15 8:16
Mark_Wallace31-Mar-15 8:16 
GeneralRe: Why iMacs are the best dev machines Pin
User 842031-Mar-15 8:36
User 842031-Mar-15 8:36 
GeneralRe: Why iMacs are the best dev machines Pin
Mark_Wallace31-Mar-15 9:00
Mark_Wallace31-Mar-15 9:00 
GeneralRe: Why iMacs are the best dev machines Pin
User 842031-Mar-15 10:18
User 842031-Mar-15 10:18 
GeneralRe: Why iMacs are the best dev machines Pin
Mark_Wallace31-Mar-15 16:26
Mark_Wallace31-Mar-15 16:26 
GeneralRe: Why iMacs are the best dev machines Pin
TheGreatAndPowerfulOz31-Mar-15 9:00
TheGreatAndPowerfulOz31-Mar-15 9:00 
JokeRe: Why iMacs are the best dev machines Pin
SoMad31-Mar-15 9:32
professionalSoMad31-Mar-15 9:32 
GeneralRe: Why iMacs are the best dev machines Pin
Michael Martin1-Apr-15 0:51
professionalMichael Martin1-Apr-15 0:51 
GeneralRe: Why iMacs are the best dev machines Pin
Chris Maunder2-Apr-15 7:23
cofounderChris Maunder2-Apr-15 7:23 
GeneralMy First Tablet Pin
Kevin Marois31-Mar-15 7:35
professionalKevin Marois31-Mar-15 7:35 
GeneralRe: My First Tablet Pin
Chris Maunder31-Mar-15 7:58
cofounderChris Maunder31-Mar-15 7:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.