From: Ruud Bruijnesteijn <ruud@sds-sportdata.com>
Subject: Re: [++] Tight coding
Date: 1998/03/04 [thread overview]
Message-ID: <34FC9F86.DB31737B@sds-sportdata.com> (raw)
In-Reply-To: T.Moore-0403981021390001@130.123.97.36
Terry Moore wrote:
>
> In article <34FBF347.98CB012B@acm.org>, Pete Becker <petebecker@acm.org> wrote:
>
> > Ruud Bruijnesteijn wrote:
> > > I think there is
> >
> > This assertion of faith is not at all useful. If you have actual data
> > please say so. "I think there is..." means nothing.
>
> Conversely, being negative about these ideas without data to
> back this point of view, is equally meaningless.
> I take "I think" to mean that he has seen such literature but
> cannot give a reference off hand. Well, nor can I, but there
> must be a better way to program than the try-it-and-hope-it-works
> principle that is used so much now.
Yes I have seen literature, No I do not have it at hand.
So, from my own expierience I can say that:
Doing a 190KByte program in Borland C++ (not the worst of devellopment
environments I know) took me 3 months.
Doing the same program from scratch WITH decent stepwise refinment and
on the fly proof for correctness in TopSpeed M2 (Almost as good as
Turbo) took me 3 weeks.
In fact, it took as much time to type in version A as it did to type
version B. However, once that was done, it took me 7 weeks with version
A to test (and debug) and 3 days with version B. In fact, after 3 weeks
of testing A) we started thinking of throwing the whole damn thing away
and start anew. It took further 3 more weeks to finaly take that
decision, i.e. as long as it took to redo the entier program!
OK, so I AM more fluent in M2 than C++. Still I know at least two other
companies in my direct vincinity, that based on lenghty discussions with
the software division of my company on programming techniques in
general, have adopted a more formal approach to programming, and they
have achieved comparable results. One (advanced image recognition)
whilst switching from c to pascal, the other (workstation CAD/CAM)
decided to stick to C++.
However, all three of us have concluded that the number of bugs found at
runtime (i.e. when the product is being tested, or even when installed
on site with their customers) calculated for more than 60% of the total
time for devellopment of the product (i.e. from time of conception of
the algorithm to time of delivery) and this can be reduced to approx 10%
of total time once proper proving was performed.
Yes, there were STILL bugs left, because, as stated earlier, the human
factor cannot be ruled out. However, these bugs were mostly due to using
mixing up variables or forgetting to properly initialize them. Some
compilers would have warned of the latter one, bound-checking catched
the others within a couple of minutes.
As one of our staff uses to say: Once I find one or two bugs, I can
asume it's the odd mistake. Once I've found nr. 10, I can no longer
assume that there will be no more, in fact I now know for sure that
there will always be one more, and the entier program has to be
seriously questioned.
--
Ruud Bruijnesteijn
SDS Sport.Data.Systems GmbH
http://www.sds-sportdata.com
next prev parent reply other threads:[~1998-03-04 5:00 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-23 5:00 Wildfire and NT Robert Harley
1998-02-24 5:00 ` brianh
1998-02-24 5:00 ` David Hinds
1998-02-25 5:00 ` Del Cecchi
1998-02-25 5:00 ` brianh
1998-02-24 5:00 ` Bill Moyer
1998-02-25 5:00 ` Larry Kilgallen
1998-02-25 5:00 ` brianh
1998-02-25 5:00 ` Epiphanies (was: Wildfire and NT) Carlie Coats
1998-02-25 5:00 ` Wildfire and NT John Hascall
1998-02-25 5:00 ` Rob Rodgers
1998-02-24 5:00 ` Sean Burke
1998-02-25 5:00 ` Maynard Handley
1998-02-25 5:00 ` [++] Tight coding (Was: Re: Wildfire and NT) Terje Mathisen
1998-02-28 5:00 ` Piercarlo Grandi
1998-03-01 5:00 ` [++] Tight coding Bill Moyer
1998-03-01 5:00 ` Larry Kilgallen
1998-03-01 5:00 ` [++] Tight coding (comp.sys.dec-only thread) Bill Moyer
1998-03-01 5:00 ` [++] Tight coding Ruud Bruijnesteijn
1998-03-01 5:00 ` scott
1998-03-02 5:00 ` Terry Moore
1998-03-02 5:00 ` Kaz Kylheku
1998-03-02 5:00 ` Pete Becker
1998-03-03 5:00 ` Ruud Bruijnesteijn
1998-03-03 5:00 ` Pete Becker
1998-03-04 5:00 ` Terry Moore
1998-03-03 5:00 ` Pete Becker
1998-03-04 5:00 ` Ruud Bruijnesteijn [this message]
1998-03-02 5:00 ` Martin Tom Brown
1998-03-02 5:00 ` Kaz Kylheku
1998-03-02 5:00 ` Peter Moylan
1998-03-02 5:00 ` Scott Fluhrer
1998-03-02 5:00 ` Lawrence Kirby
1998-03-02 5:00 ` Peter Moylan
1998-03-02 5:00 ` Ketil Z Malde
1998-03-04 5:00 ` Lyn A Headley
1998-03-02 5:00 ` Kaz Kylheku
1998-03-03 5:00 ` Lawrence Kirby
1998-03-02 5:00 ` Kaz Kylheku
1998-03-02 5:00 ` Martin Harvey
1998-03-03 5:00 ` Larry Kilgallen
1998-02-25 5:00 ` Wildfire and NT Mike Albaugh
1998-02-25 5:00 ` brianh
1998-02-25 5:00 ` Bernd Paysan
1998-02-25 5:00 ` brianh
1998-02-26 5:00 ` Bernd Paysan
1998-02-27 5:00 ` brianh
1998-03-01 5:00 ` Ketil Z Malde
1998-02-26 5:00 ` Doug
1998-02-26 5:00 ` Jeffrey S. Dutky
1998-02-27 5:00 ` Paul Kahler
1998-03-02 5:00 ` Joel Gallun
1998-03-02 5:00 ` Przemek Klosowski
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox