From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-Thread: fa528,85404311f8041f7a X-Google-Attributes: gidfa528,public X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-07-16 06:21:21 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!sjc-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> <9iuo4h$her$14@bob.news.rcn.net> Organization: LJK Software Date: 16 Jul 2001 09:20:46 -0500 NNTP-Posting-Host: 216.44.122.34 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 995289674 216.44.122.34 (Mon, 16 Jul 2001 13:21:14 GMT) NNTP-Posting-Date: Mon, 16 Jul 2001 13:21:14 GMT Xref: archiver1.google.com comp.sys.dec:5878 comp.unix.tru64:3550 comp.arch:14060 In article <9iuo4h$her$14@bob.news.rcn.net>, jmfbahciv@aol.com writes: > In article , > Kilgallen@eisner.decus.org.nospam (Larry Kilgallen) wrote: >>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). > > [emoticon thinking back to some really bad programmers] I've > met some 1000 line programs that seemed to have more > defects than a 100K line program. Although I think it was > a side effect from the attitude that a newbie can teeth > on the smaller program. That is exactly what I meant by "all other things being equal". Not all programmers are 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. > > And this works? Or is it one of those metrics that look > impressive in upper level management book reports. It is a somewhat useful prediction of the number of defects for which one should search. If the number of defects found is low by 50% or high by 100% I would consider that reasonable. If it is low by an order of magnitude (compared to similar programs created in a similar fashion), the testing job is suspect. If the defect count is high by an order of magnitude, this program is worse than your average program. Of course the defect counts above refer to the count after one has reached a significant decrease in the number of defects found per unit of effort spent finding them.