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.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1042f393323e22da X-Google-Attributes: gid103376,public From: NKSW39B@prodigy.com (Matthew Givens) Subject: Re: Any research putting c above ada? Date: 1997/04/16 Message-ID: <5j1912$1rj6@newssvr01-int.news.prodigy.com>#1/1 X-Deja-AN: 235146204 Distribution: world References: <5ih6i9$oct$1@waldorf.csc.calpoly.edu> <5ijb0o$ajc@ns1.sw-eng.falls-church.va.us> <334d3da5.14386594@aplcen.apl.jhu.edu> <2senchydgk.fsf@hpodid2.eurocontrol.fr> <5im3an$3dv@bcrkh13.bnr.ca> <33526cbf.41c6@cca.rockwell.com> <5iusvd$118e@newssvr01-int.news.prodigy.com> <33541be1.14961570@news.airmail.net> Organization: Prodigy Services Company 1-800-PRODIGY Newsgroups: comp.lang.ada Date: 1997-04-16T00:00:00+00:00 List-Id: clines@airmail.net (Kevin Cline) wrote: > >>I've always hated that level of "problems" discovered in code review. >>It's an integer, right? Why put a type declaration around an integer? >>It seems to me that a code review is supposed to discover major errors >>that actually affect the functionality of the code. Burdening the >>programmer with a lot of cosmetic alterations that don't change the >>functionality is self-defeating, IMHO. >> > >Wow! I'm not a big Ada fan, but I'm sure glad I don't have to maintain your >code. I would hate to have to go through it and figure out which fours needed >to be changed to eights, and which needed to be left alone. What does a type declaration have to do with changing a 4 to an 8? Constant values, being part of the algorythm, would be looked at. But why force a type declaration that isn't needed to compile correctly? Also, on the 4 to 8 change you brought up, I usually use constants (such as max_trucks) set to the desired value (in this case 8) instead of the integer 8. Why? Easier to maintain, modify, and debug. > > >> >>And are written to a higher set of standards then, say, an accounting >>package. Take into account the different situations, please. >> > >An accounting package that produced erroneous results could cost >someone a lot of money. The standards for commercial accounting packages >are pretty high. Hmmmmm, compare losing money to losing lives, and see which should have the higher standards. I know what I would choose. - "Outside of a dog, a book is a Man's best friend. Inside of a dog it's very dark." << Iceman >>