home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / software / 4437 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.7 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sdd.hp.com!swrinde!elroy.jpl.nasa.gov!ames!agate!doc.ic.ac.uk!uknet!root44!hrc63!mrcu!uk.co.gec-mrc!paj
  2. From: paj@uk.co.gec-mrc (Paul Johnson)
  3. Newsgroups: comp.software-eng
  4. Subject: Complexity metrics: Beyond McCabe.
  5. Message-ID: <2235@snap>
  6. Date: 20 Nov 92 09:46:37 GMT
  7. Sender: paj@uk.co.gec-mrc
  8. Reply-To: paj@uk.co.gec-mrc (Paul Johnson)
  9. Organization: GEC-Marconi Research Centre, Great Baddow, Essex
  10. Lines: 27
  11.  
  12. I've been having a look at complexity metrics.  McCabe "A Complexity
  13. Measure" (IEEE Trans SE, SE2 1976) sounds like a good start.  He
  14. measured complexity by counting flow control paths within a program.
  15. Has anyone extended this work?  Is it seen as a significant kind of
  16. metric?
  17.  
  18. I have had a look at function points.  The trouble is that they behave
  19. like fractals: the closer you look the more you see.  This strikes me
  20. as useless.
  21.  
  22. What makes a piece of code hard to understand and follow?  McCabe
  23. concentrated on flow control because the debate of those days was
  24. structured vs. unstructured programming, and he sought to show that
  25. structured programs were simpler.  Today we have a debate on OO vs
  26. non-OO.  Can we find a metric which measures what we intuitively call
  27. "complexity" in a program?  (I think not, although we may be able to
  28. approximate it).  Is it possible to show that an OO design can reduce
  29. the complexity of a program?
  30.  
  31. Should a metric like this take numbers of variables into account?
  32. Assignment statements?  If I take a chunk of code and put it into a
  33. function, inserting a function call in its place, have I increased
  34. complexity, decreased it or not affected it?
  35.  
  36. Any and all comments will be read with interest.
  37.  
  38. Paul.
  39.