comp.lang.ada
 help / color / mirror / Atom feed
From: hubcap!ncrcae!ncrhub2!ncrgw2!psinntp!witch!mlb!mbayern@gatech.edu  (Mark
Subject: Re: Ada compiler for the IBM PC
Date: 13 May 93 23:48:13 GMT	[thread overview]
Message-ID: <119@mlb.win.net> (raw)

 
>
>Sounds like you'd like to use EditAda, a Windows-based editor aimed
>at Ada developers.  It's a shareware product available via anonymous
>ftp from Wash U archive or from the CICA (Indiana) archive.
>
>Shameless plug is now over.  Back to the usual rabble.... :-)
>

Is this the same as EditAda I got last week from CLMFORUM on
Compu$erve?  If so it doesn't work (on my machine machine
anyway).  It would always give an Actor (huh??) error message 'out
of disk space'.  Since I've got over 50M free on this thing I don't
think it is really out of space.  Any ideas?  How about a phone
number so we can talk about it?

Mark Bayern

------------------------------
37741040@Isis.MsState.Edu> raj2@Isis.MsState.Edu (rex allan jones) writes:
>	Could someone please point me in the direction of a metrics package
>to compute McCabe's Cyclomatic Complexity for Ada programs?

Logiscope, from Verilog.
Or AdaDL, from SSD (?)
Or check the Ada Software Repository for something free.

Somone else (I hate "vi") wrote:
>Not that this answers your question, but since you bring it up :)
>
>Who is using McCabe, and why? What values are construed as "acceptable",
>"requires further investigation", and "this code is rejected"? How
>were these values derived? Enquiring minds want to know...

McCabe scores are not by themselves a very useful indication of Ada quality.
However, they can be of some use.  When someone hands me 2500 lines of 
code written by the guy that just quit, I look first at the routines with the
highest McCabe scores.  Almost always, if the score is over twenty, I can 
bring it down to 15 or less with some thoughtful re-design.  Not everyone
can make sense out of spaghetti code like that, so I see it as a "service" to
those that come after me--even if the code was already meeting its requirements
(of course I keep the old version for safety :-)  )

As far as what the values SHOULD be:  I have had to work on code written by
many other people.  Consequently I have a good idea of who writes "good stuff"
and who writes "bad stuff"  So I can get a list of the McCabe scores for all
of Fred's units in one list, all of Frieda's in another, etc. and compare.
The averages are usually QUITE different.

Wes G.

P.S. One thing McCabe doesn't show is what I call "hidden" complexity.
Hidden, because it doesn't show on a flow chart or path graph.  This kind of
complexity is produced by a technique more than one of my former colleagues
was fond of:  That of declaring lots of "flag" variables, and using them to
control branching at a point far away from where they were set.  I'd like
to see someone come up with a McCabe-like metric where if dotted lines are
drawn on a control graph connecting the setting of one of these flags with
all tests that depend on that setting, the metric would be affected by 
these lines and their nodes.  Whew! What's the complexity metric of that last
sentence?!?!? 

             reply	other threads:[~1993-05-13 23:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-13 23:48 hubcap!ncrcae!ncrhub2!ncrgw2!psinntp!witch!mlb!mbayern [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-05-13 19:59 Ada compiler for the IBM PC cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland.
1993-05-13 16:56 dog.ee.lbl.gov!overload.lbl.gov!agate!howland.reston.ans.net!zaphod.mps.o
1993-05-13  3:02 Michael Feldman
1993-05-12 17:47 olivea!charnel!rat!zeus!cymbal.calpoly.edu!jplee
1993-05-12 16:51 cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!wellerd
1993-05-12 14:29 cis.ohio-state.edu!math.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexa
1993-05-12  1:25 dog.ee.lbl.gov!overload.lbl.gov!agate!usenet.ins.cwru.edu!magnus.acs.ohio
1993-05-11 22:16 Laurence VanDolsen
1993-05-11 14:32 ben elliston
1993-05-10 17:20 dog.ee.lbl.gov!network.ucsd.edu!sdd.hp.com!usc!howland.reston.ans.net!new
1993-05-04 22:55 Mark Bayern
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox