Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!augean!sibyl!ian From: ian@sibyl.eleceng.ua.OZ (Ian Dall) Newsgroups: comp.bugs.sys5 Subject: Re: Shell Scripts v. Command Options (was: Re: small bug in who(1) of SVR3) Message-ID: <886@sibyl.eleceng.ua.OZ> Date: 21 Jan 91 23:15:31 GMT References: <18899@rpp386.cactus.org> <1991Jan14.202053.20054@zoo.toronto.edu> <18946@rpp386.cactus.org> Reply-To: ian@sibyl.OZ (Ian Dall) Organization: Engineering, Uni of Adelaide, Australia Lines: 24 In article <18946@rpp386.cactus.org> jfh@rpp386.cactus.org (John F Haugh II) writes: >Studies have shown that the cost of maintaining code is largely independent >of the language and depends primarily on the amount of code. That confirms my experience. >A three line >change to a C file should be just as easy to maintain as a three line shell >script. I don't believe that. The size of the C program you are maintaining is the whole program, not just the 3 lines you added! The trouble is, when making the "three line change" to a big program, you have to comprehend (almost) the whole program. It's like the ubiquitous one line bug fix. The hard bit isn't typing in the line, it is working out what change to what line is required. Secondly, I think it is rare that you could translate a 3 line shell script to 3 lines of C code. -- Ian Dall life (n). A sexually transmitted disease which afflicts some people more severely than others. ACSnet: ian@sibyl.eleceng.ua.oz internet: ian@sibyl.eleceng.ua.oz.au