Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #13736

Re: How does code metrics affect your motivation? Academic survey

From "Bill Davy" <Bill@SynectixLtd.com>
Newsgroups comp.lang.c++
Subject Re: How does code metrics affect your motivation? Academic survey
Date 2012-02-04 12:20 +0000
Message-ID <9p4m4qF268U1@mid.individual.net> (permalink)
References <c69d66c0-0819-4f0f-994e-2cbdbcfd8b9f@v14g2000vbc.googlegroups.com><224f6d37-d1ce-4792-94db-9077fe00c05d@t30g2000vbx.googlegroups.com><jgbnav$dbs$1@dont-email.me><slrnjiivig.1ls.grahn+nntp@frailea.sa.invalid><7bf245ef-26e1-4d78-af90-a7a6f3b97594@o14g2000vbo.googlegroups.com> <buofweso6a9.fsf@dhlpc061.dev.necel.com>

Show all headers | View raw


"Miles Bader" <miles@gnu.org> wrote in message 
news:buofweso6a9.fsf@dhlpc061.dev.necel.com...
> Nick Keighley <nick_keighley_nospam@hotmail.com> writes:
>> I've got similar opinions. Such metrics might be handy for spotting
>> potential problems; "list all the methods that are >100 LOC" or exceed
>> some value for "complexity". But when I've had such things readily
>> available I didn't make great use of them.
>
> Hmm, that's a nice-sounding metric, as it's really simple to calculate
> for typical programming languages, and probably is useful for the
> purpose you state.
>
> You're right that most people aren't going to be tracking such info
> constantly, but still, every once in a while one tends to go into
> "spring-cleaning mode", and it's nice to have such tools available then.
>
> -Miles
>
> -- 
> 80% of success is just showing up.  --Woody Allen


I use http://www.campwoodsw.com/sourcemonitor.html (donations welcome) if I 
have time.  It is easy to set up and use.  Then just check the functions 
with the worst stats.  I wish there was some way of making it happier about 
large switch statemenst (as used to implement FSM quite cleanly and simply).

And although it does not produce "metrics" as such (imho), PC-Lint is a very 
worthwhile tool as well. 

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How does code metrics affect your motivation? Academic survey RLC <lustik.cohen@googlemail.com> - 2012-01-31 11:54 -0800
  Re: How does code metrics affect your motivation? Academic survey Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-01 06:31 -0800
    Re: How does code metrics affect your motivation? Academic survey Victor Bazarov <v.bazarov@comcast.invalid> - 2012-02-01 10:56 -0500
      Re: How does code metrics affect your motivation? Academic survey Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-02-01 18:02 +0000
        Re: How does code metrics affect your motivation? Academic survey Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-02 03:52 -0800
          Re: How does code metrics affect your motivation? Academic survey Miles Bader <miles@gnu.org> - 2012-02-03 14:05 +0900
            Re: How does code metrics affect your motivation? Academic survey "Bill Davy" <Bill@SynectixLtd.com> - 2012-02-04 12:20 +0000
          Re: How does code metrics affect your motivation? Academic survey jgk@panix.com (Joe keane) - 2012-02-04 13:26 +0000
            Re: How does code metrics affect your motivation? Academic survey Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-05 04:36 -0800
              Re: How does code metrics affect your motivation? Academic survey "ILostMyKeys" <unlock.the.door.plz@its.cold.outside> - 2012-02-08 00:04 -0600
                Re: How does code metrics affect your motivation? Academic survey Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-09 01:02 -0800
                Re: How does code metrics affect your motivation? Academic survey Henrik Faber <hfaber@invalid.net> - 2012-02-09 10:10 +0100

csiph-web