home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:16356 comp.software-eng:4238 comp.sys.mac.programmer:18285
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!decuac!pa.dec.com!decwrl!netcomsv!ulogic!hartman
- From: hartman@ulogic.UUCP (Richard M. Hartman)
- Newsgroups: comp.lang.c,comp.software-eng,comp.sys.mac.programmer
- Subject: Re: Productivity of a C programmer ?
- Message-ID: <572@ulogic.UUCP>
- Date: 11 Nov 92 21:30:30 GMT
- References: <560@ulogic.UUCP> <1992Nov6.112137.10887@uklirb.informatik.uni-kl.de> <721104893@sheol.UUCP>
- Followup-To: comp.lang.c
- Organization: negligable
- Lines: 44
-
- In article <721104893@sheol.UUCP> throopw@sheol.UUCP (Wayne Throop) writes:
- >A bit easier to gather than, say, McCabe or other metrics, but
- >still probably quite a bit more useful than line counts are
- >
- > # total number of identifiers
- > # total number of unique identifiers
- > # total number of C (or whatever language) keywords
- > # total number of unique C (or whatever language) keywords
-
- Since this was modified from a xref-generator, I might be able to
- do something about this (someday :) You would also have to distinguish
- between global identifiers & local. You might have "i" everywhere, but
- that doesn't make it important, and it would probably be local everywhere.
-
- Even more interesting is counting usage of keywords a separate from
- lines of code. You might also wish to count complete statements separated
- from lines of code:
-
- if (cond 1 ||
- ((cond2a && cond2b) && !cond2c))
- do_this;
- else
- do_that;
-
-
- may be five lines of code, but it is one (or three?) statements....
-
- >Therefore, though I don't know how the metrics I suggest really
- >correspond to development time, number of requirements, bug density,
- >customer satisfaction, and other important matters, I know that for me,
- >they *do* tend to correspond to how long it will take me to
- >*understand* a given chunk of code.
-
- I think it also helps that you can jump to all the references quickly.
- I don't know if just the raw numbers w/o your tag-like file would
- be nearly as significant, but it is something to think about.
-
-
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Blasting, bursting, billowing forth with |
- the power of ten billion butterfly sneezes, | -Richard Hartman
- Man, with his flaming fire, | hartman@uLogic.COM
- has conquered the wayword breezes. |
-