comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <Gautier.deMontmollin@Maths.UniNe.CH>
To: bill <bill@newsguy.com>
Subject: Re: What is ADA?
Date: 1999/02/23
Date: 1999-02-23T00:00:00+00:00	[thread overview]
Message-ID: <36D2DFEE.B0833C02@Maths.UniNe.CH> (raw)
In-Reply-To: 7auet2$qu5@drn.newsguy.com

> 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




  reply	other threads:[~1999-02-23  0:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-22  0:00 What is ADA? Corvus
1999-02-21  0:00 ` bill
1999-02-22  0:00 ` Matthew Heaney
1999-02-22  0:00 ` Corvus
1999-02-22  0:00   ` dennison
1999-02-23  0:00     ` Ehud Lamm
1999-02-22  0:00 ` Tom Moran
1999-02-22  0:00   ` Nick Roberts
1999-02-22  0:00 ` robert_dewar
1999-02-23  0:00   ` Gautier
1999-02-23  0:00     ` Tom Moran
1999-02-23  0:00     ` bill
1999-02-23  0:00       ` Gautier [this message]
1999-02-23  0:00   ` Bob Munck
1999-02-24  0:00     ` robert_dewar
1999-02-22  0:00 ` David Botton
1999-02-23  0:00   ` Michael Young
1999-02-24  0:00     ` Steve Quinlan
     [not found]     ` <36d52fe9.8491568@news.geccs.gecm.com>
1999-02-26  0:00       ` David Botton
  -- strict thread matches above, loose matches on Subject: below --
1997-05-10  0:00 David Chang
1997-05-11  0:00 ` Robert Dewar
1997-05-13  0:00 ` Alan Brain
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox