comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland.
Subject: Re: McCabe package for Ada?
Date: 19 May 93 15:20:19 GMT	[thread overview]
Message-ID: <C7A59v.F3G@oakhill.sps.mot.com> (raw)

In article <1tbvt4$2m3@fido.asd.sgi.com> jackr@dblues.wpd.sgi.com (John Jack Re
penning) writes:
>
>In article <C78rKq.57z@oakhill.sps.mot.com>, alanw@williams.sps.mot.com writes
:
>
>> Mark asks a REALLY good question:  just what the $%^&* is McCabe's
>> number useful for?  I've found the following uses:
>> ...
>> 2.  Candidates for rewrites
>
>Careful with that approach: if it's recently written, or if it's
>causing problems, you might want to rewrite it.  But if it ain't
>presently broke, no _way_ do you want to fix this one: you probably
>haven't a *clue* what it really does, or how.

Lemme get this straight:  you have some code.  Its your code.
The author doesn't remember what it does, or has long since gone
off to ostensibly greener pastures.  You don't have a clue what
it does.  So, you ignore it.  Hmmmmm .....

>I've encountered (in a former job) high cyclomatic modules with an
>established history of more-or-less working, where we decided the best
>approach was to wall the thing off and avoid looking at it - even to
>the extent of some fairly complex head-standing to work around its
>idiosyncracies.  We took that course, because our first reaction was
>to rewrite it, and that was an utter disaster (thank heaven for
>version control!).

Well, hell, Jack, I didn't say re-write the thing NOW.  But sure
as hell if you got some crusty ol' code that seems to work but
has McCabe numbers way up there (like, say 100 or above), you are
going to have to deal with it SOME DAY.  Unless you are working
in a completely stagnant world (which I know you're not -- heh heh).

Hell yes, if you're not using rcs or cvs or something for source
code control, you shouldn't even be bothering with McCabe or
much of anything.  You should go back to your sandbox and play with
the nice dump truck .....  :-)

>
>Jack Repenning		      M/S 1-875	     jackr@wpd.sgi.com
>Silicon Graphics, Inc.	       x3-3027      Off:(415) 390-3027
>Visual Magic Division			    Fax:(415) 390-6056

Clearly SGI is NOT one of these places.
--
  _ Alan R. Weiss  Motorola-Semiconductor Products Sector, RISC Software
_| ~-. 6501 William Cannon Dr. West, MD-OE112, Austin, Texas USA 78735
\, *_} alanw@pets.sps.mot.com or alanw@maze.sps.mot.com| Voi: 512-891-6003
  \(   DISCLAIMER:  I do not speak for Motorola, Inc.  | Fax: 512-891-3798

	"Where there is no vision, people perish" - Proverbs 29:18

             reply	other threads:[~1993-05-19 15:20 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-19 15:20 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland. [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-06-07 18:43 McCabe package for Ada? sgi!fido.asd.sgi.com!dblues!jackr
1993-06-05 19:29 David Boyd
1993-06-04 23:53 Kevin Sullivan
1993-06-04 22:07 dog.ee.lbl.gov!network.ucsd.edu!swrinde!cs.utexas.edu!csc.ti.com!tilde.cs
1993-06-04 21:44 Ala n R. Weiss
1993-06-04 21:25 Dani Zweig
1993-06-04 15:47 agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!w
1993-06-04  6:24 Dani Zweig
1993-06-03 19:47 dog.ee.lbl.gov!network.ucsd.edu!sdd.hp.com!portal!lisburn!jaime
1993-05-27 17:55 Laurence VanDolsen
1993-05-26 22:42 David Boyd
1993-05-26 20:44 Wes Groleau X7574
1993-05-25 10:52 pipex!uknet!glasgow!unix.brighton.ac.uk!wjmc
1993-05-24 19:36 Alex Blakemore
1993-05-24  0:33 mole-end!mat
1993-05-19 23:04 David Boyd
1993-05-19 22:09 David Boyd
1993-05-19 21:18 agate!howland.reston.ans.net!darwin.sura.net!haven.umd.edu!news.umbc.edu!
1993-05-19 20:03 Wes Groleau X7574
1993-05-19  0:44 sgi!fido.asd.sgi.com!dblues!jackr
1993-05-18 23:42 David Boyd
1993-05-18 21:26 dog.ee.lbl.gov!overload.lbl.gov!agate!howland.reston.ans.net!ux1.cso.uiuc
1993-05-18 19:24 dog.ee.lbl.gov!network.ucsd.edu!usc!howland.reston.ans.net!europa.eng.gte
replies disabled

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