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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d89b08801f2aacae X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-01 11:43:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!newspeer.clara.net!news.clara.net!peernews!peer.cwci.net!newspeer1-gui.server.ntli.net!ntli.net!news8-gui.server.ntli.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Is strong typing worth the cost? From: dmjones References: <82347202.0205010735.1d1a66c3@posting.google.com> Organization: Knowledge Software Message-ID: User-Agent: Xnews/L5 Date: Wed, 01 May 2002 18:42:35 GMT NNTP-Posting-Host: 62.252.22.178 X-Complaints-To: abuse@ntlworld.com X-Trace: news8-gui.server.ntli.net 1020278555 62.252.22.178 (Wed, 01 May 2002 19:42:35 BST) NNTP-Posting-Date: Wed, 01 May 2002 19:42:35 BST Xref: archiver1.google.com comp.lang.ada:23360 Date: 2002-05-01T18:42:35+00:00 List-Id: Jim, >> Jim Rogers: What are the parameters of cost? >> >> Me: Money. Developers time (original development, subsequent >> maintenance), lost business opportunities being late to market >> (finding staff with necessary skills, additional lead time in >> getting it 'more right'). Plus lots of other things. > > Your answers on cost parameters are still a bit vague. "Money" is not > a cost parameter. It is a system of paying for those parameters. But developers time and lost business opportunities are the next level down the chain. > You are correct in seeing that lost business opportunities produce > negative economic results for a company. It appears that you have an > underlying assumption is that weak typing is a tool to avoid lost > business opportunities. Where is the proof for that assumption? Strong typing requires me to pay more attention to 100% of the source I write. By pay attention I mean I have to get it through the compiler (the compiler will pick me up on type errors that I will have to invest time in fixing). Using a weakly typed language does not require me to invest so much time up front. Usage of my program, by customers, will not result in all statements being executed. Say 70-80% are not executed (I can dig up some papers on this). Knowing this my management has instituted an 'only test what the initial customers are likely to use' policy (of course if they really knew what they were doing they would have an 'only write what the customer is likely to use' policy, but we are in a hurry to get things out the door and once written any code is kept). So I have saved time by only concentrating on a subset of the code. Now the question is, what is the cost & benefits of weak/strong typing on the code I do concentrate on? A small group of people, starting from scratch, say under 100K SLOC, working for 6 months. I think weak typing could win. More people, having to use existing code, longer time period, then yes strong typing would win. No proof on this (what bad habits I have picked up by posting to this group ;-), just practical experience. > * Maintenance I would rather pay higher maintenance costs and be in business than have lower maintenance costs if I were in business. I know from experience that many successful companies build some of their products from the most tangled mess of source code. > * Warranty Costs (the costs arising from dealing with unhappy > customers) > * Legal Costs (patents as well as injured party litigation) These are the only issues that might generate a change of management attitude. Jerrey Carter: > I recall seeing, but can't now find, an article that put the worldwide > cost of crackers exploiting security flaws at $10G for a recent year. Unless the vendor of the software pays, these are not costs in the sense being discussed here.