From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,41100a78496a4c71 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-05 12:42:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3CAE0C16.5B1E974B@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Metrics! (was) Nethack! (was): AdaGames References: <98104da8.0203280310.143a1c18@posting.google.com> <4519e058.0203290613.73b55af4@posting.google.com> <6g4gaugv9a85i56kvgcgmu4h2jkjprutec@4ax.com> <4519e058.0204010704.ed2cd06@posting.google.com> <4519e058.0204021030.14127b06@posting.google.com> <4519e058.0204030750.78a30287@posting.google.com> <3CAC7AC6.A6DBDC32@despammed.com> <4519e058.0204050643.30f2e516@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 05 Apr 2002 15:41:58 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1018039334 151.168.144.162 (Fri, 05 Apr 2002 14:42:14 CST) NNTP-Posting-Date: Fri, 05 Apr 2002 14:42:14 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:22163 Date: 2002-04-05T15:41:58-05:00 List-Id: > Then there was the week I decided to refactor several badly designed > units, and got a visit from a bemused team lead mock-castigating me > for making *negative* progress that week. :-) In my fifteen or so years as a "software engineer," I would estimate that about half of the bug fixes and 20% of the enhancements I've done have been accomplished by REMOVING code. On one occasion, out of curiosity, I ran some code through a metrics tool, that said, among other things that one of Halstead's metrics "predicted" that the code would take X hours to develop. I laboriously edited the code to reduce all names to one to three characters long, removed all comments, converted all reserved words to one or two-character abbreviations, collapsed all white space, merged short lines, and then compressed the whole file. I checked the size of the file. If there was a way to type a compressed file, to create that one in X hours would have required typing faster than anybody I ever heard of. Is it possible there was a misprint in the book? Hours instead of weeks? -- Wes Groleau http://freepages.rootsweb.com/~wgroleau