From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,85404311f8041f7a X-Google-Attributes: gidfa528,public X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-07-13 05:51:08 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!iad-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!kilgallen From: Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) Newsgroups: comp.sys.dec,comp.unix.tru64,comp.arch Subject: Re: Debugging Methodology (was Re: Compaq kills Alpha Message-ID: References: <3B46C8C7.E2AFF889@peoplepc.com> <3B471A6C.EE8715F5@igs.net> <$KhLsMn0xNNj@eisner.encompasserve.org> <3 <9idnuc$jfg$1@sunnews.cOrganization: LJK Software <9ik5ce$m0p$1@bob.news.rcn.net> <9ikf12$qec$6@bob.news.rcn.net> <9imq0m$s37$8@bob.news.rcn.net> Organization: LJK Software Date: 13 Jul 2001 08:50:33 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 995028639 216.44.122.34 (Fri, 13 Jul 2001 12:50:39 GMT) NNTP-Posting-Date: Fri, 13 Jul 2001 12:50:39 GMT Xref: archiver1.google.com comp.sys.dec:5733 comp.unix.tru64:3474 comp.arch:13883 In article <9imq0m$s37$8@bob.news.rcn.net>, jmfbahciv@aol.com writes: > In article , > Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) wrote: >>What constitutes "reading the code" ? There is a continuum >>from formal inspection down to just measuring the total lines >>of code (to make a guess at the test effort required). > > [emoticon gapes, rereads the last one, gapes...repeated until > gaping factor was diminished so that jaw didn't hit floor] > You have got to be shitting me. You can make a prediction > based on number of lines of code...I can't even define the > term "number of lines of code". How....???? Well run organizations make predictions of defect counts based on lines of code all the time. There are other elements that should be included as well, but lines of code is not irrelevant. Surely you don't feel that a 1000 line program has the same number of total defects as a 100,000 line program (all other things being equal). There are standard methods of counting lines of code, and tools that do it. When comparing programs, it does not really matter what your rules are for "lines of code", it only matters that you use the same rules for all programs. >> One >>such technique falling in the middle ground, for a certain >>language that shall remain nameless, is to search for any >>line that contains a single equal sign ("=") and also the >>lexeme "if" :-) > > > Well, there were those little tricks of the trade. > One of my den mother tests was to feed an EXE file as input > to something expecting ASCII. The fit always hits the shan > with that one. Yes, that is much cheaper than examining the source to look for weak spots. Lots of techniques are applicable, but some are quite a bit cheaper to implement. I believe the overwhelming reason why software is not tested enough is that testing is perceived as being too expensive.