comp.lang.ada
 help / color / mirror / Atom feed
From: John McCabe <john@nospam.assen.demon.co.uk>
Subject: Re: Prototyping with Ada
Date: Thu, 29 May 2008 10:41:19 +0100
Date: 2008-05-29T10:41:19+01:00	[thread overview]
Message-ID: <gtts34h9d7rnaqle1c07mmd14j1khl7ica@4ax.com> (raw)
In-Reply-To: 7e670f6c-58ed-4dac-bcb7-e1d062a81ca9@i76g2000hsf.googlegroups.com

On Wed, 28 May 2008 05:12:12 -0700 (PDT), Ludovic Brenta
<ludovic@ludovic-brenta.org> wrote:

>John McCabe wrote:
>> Code quality, yes (but your use of the term "right" is very
>> important!). It is much more difficult to refactor an inadequate
>> design at that point.
>
>I agree that if the design is bad, it might be better to throw the
>program away (perhaps salvaging some reusable components) and start
>from scratch than to refactor. But that shouldn't be what you plan
>for.  If you think you need a prototype, chances are you are unsure
>about the quality of your design.

That all depends on what is meant by quality here. Prototyping has
many purposes, one of those is to prove a design will work. If you
don't need to prove your design will work then the chances are that
you are designing something you've done before and therefore don't
need to design again, or you are superhuman. In this paragraph I'm
referring to the structural and behavioural design you have come up
with.

In addition prototyping allows you to quickly provide a mock-up of a
system to present to a customer to validate that what you are doing is
the right thing. Once you've got a very basic design in place you can
start knocking code up to do this, but it's important to remember that
this code is only there to prove something. It's not intended to be
good quality code, it also might deviate from how your design started,
but this is all about iterating to achieve the correct design in the
end, and this needs to take into account what you've learned from
trying to produce code to do the job. In most cases you will have
cobbled together the code jsut to make it work; at the protoyping
stage refactoring the code properly isn't often something you have
time to do and, in my opinion, isn't something you should attempt.
That is the point; build a prototype, learn from it, and throw it away
because your second attempt will probably be better (that's another
Brooks thing isn't it?)

> If that happens to me, I don't make
>a "protoype"; instead, I go back to the drawing board and seek a
>second opinion.

It sounds to me like you're trying to achieve a perfect waterfall
development cycle here.




  parent reply	other threads:[~2008-05-29  9:41 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-16 10:56 Ada featured in Doctor Dobb's Journal Ludovic Brenta
2008-05-16 12:28 ` Mike Silva
2008-05-16 13:04   ` Ludovic Brenta
2008-05-16 14:33     ` Mike Silva
2008-05-16 22:26       ` Randy Brukardt
2008-05-17  6:30   ` rant (Re: Ada featured in Doctor Dobb's Journal ) jhc0033
2008-05-17  8:28     ` Ludovic Brenta
2008-05-17  9:27       ` Dmitry A. Kazakov
2008-05-17  9:56         ` Georg Bauhaus
2008-05-17 12:05           ` Dmitry A. Kazakov
2008-05-17  9:38       ` jhc0033
2008-05-17 11:49         ` Ludovic Brenta
2008-05-17 17:53           ` jhc0033
2008-05-17 23:21             ` Ludovic Brenta
2008-05-18  0:28               ` jhc0033
2008-05-18  0:35               ` Dr. Adrian Wrigley
2008-05-18  8:04                 ` Prototyping with Ada (was: Ada featured in Doctor Dobb's Journal) Ludovic Brenta
2008-05-20 10:25                   ` John McCabe
2008-05-20 16:57                     ` Prototyping with Ada Jeffrey R. Carter
2008-05-20 17:23                       ` Mike Silva
2008-05-20 17:37                       ` Peter C. Chapin
2008-05-20 23:30                         ` Mike Silva
2008-05-21  0:40                         ` Jeffrey R. Carter
2008-05-21 12:53                         ` Martin Krischik
2008-05-22  8:43                     ` Stephen Leake
2008-05-28 11:32                       ` John McCabe
2008-05-28 12:12                         ` Ludovic Brenta
2008-05-29  3:27                           ` tmoran
2008-05-29  9:41                           ` John McCabe [this message]
2008-05-31  6:03                         ` Stephen Leake
2008-06-02 15:43                           ` Britt Snodgrass
2008-05-17  9:45     ` rant (Re: Ada featured in Doctor Dobb's Journal ) Georg Bauhaus
2008-05-17 10:57     ` Mike Silva
2008-05-17 16:49     ` tmoran
2008-05-16 22:56 ` Ada featured in Doctor Dobb's Journal Ivan Levashew
replies disabled

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