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.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4ef4f2b6e50a48c4 X-Google-Attributes: gid103376,public From: Gautier Subject: Re: What is ADA? Date: 1999/02/23 Message-ID: <36D2DFEE.B0833C02@Maths.UniNe.CH>#1/1 X-Deja-AN: 447539345 Content-Transfer-Encoding: 7bit References: <36D10384.CB4925C8@GoAway.com> <7arno9$f8$1@nnrp1.dejanews.com> <36D2A554.88EF1F69@Maths.UniNe.CH> <7auet2$qu5@drn.newsguy.com> To: bill Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-23T00:00:00+00:00 List-Id: > speaking of large programs. > I heared that when the goverment used to pay contractors for > code by how counting how many lines of code, a paying some fee > per/line, that people used to write large amount of dead code > which does nothing but increase the size of the program, as in: > if( false ) > x:= 1; > y:=2; > x:=y; > y:=2; > else > -- ok, do real work now, we earned enough goverment money allready :) > end if > btw, notice that in Java, the above is not possible. Java does not > allow code that can't be reached from being compiled. (which can > sometimes be annoying actually). You could add useless code in reachable code: x:= 1 * x + 0 * ( y + 2 + z ); A real case: a programmer team had to put every constant into a common file in order (surely) to keep common data dimensions etc. What did the people do to avoid updates or just to make a quick hack ? 1+1+1+1+1 for 5 etc. ! -- Gautier