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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60fc398daa7dd9cf X-Google-Attributes: gid103376,public From: Richard D Riehle Subject: Re: KSLOC estimates Ada vs C++ Date: 1999/05/28 Message-ID: <7ikt94$qvg@sjx-ixn5.ix.netcom.com>#1/1 X-Deja-AN: 482944273 References: <374DCB87.6EE9BE49@lmco.com> Organization: Netcom X-NETCOM-Date: Thu May 27 6:59:00 PM PDT 1999 Newsgroups: comp.lang.ada Date: 1999-05-27T18:59:00-07:00 List-Id: In article <374DCB87.6EE9BE49@lmco.com>, Raymond Calande wrote: >Has anyone ever seen a reference in which a comparison is done that >shows the relative size in KSLOC for Ada versus C++ for the equivalent >program? >TIA > One can easily understand why such a question would be asked. We are often looking for simple comparisons that can help us make decisions about complicated matters. Unfortunately, such a comparison is likely to be at best inconclusive, probably misleading, and at the very worst ridiculous. In some cases, a C++ program might be a little larger. In others, Ada might have more KSLOC. What would be infer from such a comparison? 1) Ada/C++ is easier to write? 2) Ada/C++ is easier to maintain through the full lifecycle? 3) Ada/C++ is easier to read? 4) Ada/C++ improves productivity? 5) None of the above The correct answer is, None of the above. There are so many hidden factors. Do we include the number of KSLOC of the libraries used in each program? Does the size of the problem contribute to the size of the program, and does an Ada program solution become smaller as the problem gets larger? Is a short C++ program shorter than a short Ada program? It would be convenient if we could reduce our decision-making to this kind of information. As is so often affirmed in contemparary sitcoms, "Size doesn't matter." Richard Riehle richard@adaworks.com http://www.adaworks.com