comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Length of unbounded_string.
Date: Thu, 27 Oct 2011 15:31:03 +0200
Date: 2011-10-27T15:31:03+02:00	[thread overview]
Message-ID: <4ea95d17$0$7612$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <d59fhj59oqp8$.13uer8rriyolv$.dlg@40tude.net>

On 27.10.11 14:17, Dmitry A. Kazakov wrote:

>> A natural extension of this phenomenon into the workplace seems to
>> be writing tests.
> 
> And the reasonable one is static checks.

Static checks are insufficient in my real world, since,
as you say, a complement is needed. This is because
my world escapes being static, among other things totally
out of control.

>> *) test cases increase the likelihood of isolated pieces of
>>    software that can be forward to help desks
> 
> What is "the likelihood of isolated pieces"?

OK, bad phrasing. Parts of a program that can be run in
isolation from the rest of the program, to see some effect,
 such that no other part of the program will be called
or referenced.

>> *) writing tests means documenting and verifying assumptions.
> 
> It does not.
> 
> A proper statement should sound like: the software must be developed in a
> way that would make it testable.

OK, but testable is another void. (What is the meaning of
"testable" without invoking more definitions, recursively,
to the point of reaching epistemological mud, remembering that
this is about the *process* of *writing* tests, not about boring
formal properties of tests?)

Example: The process of writing tests results in statements that
express the expected result of an operation.
They are thus documenting some of the (intended) properties of
a type.

     thing : T1;
     assert_equals (op (thing, data), T2'(...));

Since the type system cannot express all of these assumptions,
there is more information in these statements than in the type
system alone.  Since "formal methods" imply restrictions, some
test cases are not within reach of "formal methods".

I had not intended to say that writing tests is a substitute
for writing documentation.

> This has little to do with either documentation or understanding of a
> *given* implementation, just a separate issue.

Interesting, but I had not meant to say something about existing
software that wasn't developed with testing all along driving
the writing process.



  reply	other threads:[~2011-10-27 13:31 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-25  9:37 Length of unbounded_string ldries46
2011-10-25 17:57 ` Jeffrey Carter
2011-10-28  2:54   ` ldries46
2011-10-28  4:55     ` Jeffrey Carter
2011-10-25 20:23 ` Vadim Godunko
2011-10-25 21:28   ` Simon Wright
2011-10-26  4:41     ` Simon Wright
2011-10-26 22:47     ` Randy Brukardt
2011-10-27  8:05       ` AdaMagica
2011-10-27  8:56       ` Simon Wright
2011-10-27 11:05         ` Brian Drummond
2011-10-28  3:12           ` ldries46
     [not found]           ` <4eafc489$0$3081$703f8584@textnews.kpn.nl>
2011-11-01 18:22             ` Jeffrey Carter
2011-10-27 11:28         ` Georg Bauhaus
2011-10-27 12:17           ` Dmitry A. Kazakov
2011-10-27 13:31             ` Georg Bauhaus [this message]
2011-10-27 14:34               ` Dmitry A. Kazakov
  -- strict thread matches above, loose matches on Subject: below --
2011-10-16  8:48 ldries46
2011-10-16  9:59 ` Niklas Holsti
2011-10-16 12:06   ` ldries46
2011-10-16 12:52   ` ldries46
2011-10-16 13:00     ` Niklas Holsti
2011-10-17  7:39       ` ldries46
2011-10-17 19:49         ` Niklas Holsti
2011-10-18 11:47           ` ldries46
2011-10-18 17:54             ` Niklas Holsti
2011-10-19  2:38               ` ldries46
2011-10-19  6:07                 ` Niklas Holsti
2011-10-24 15:10                   ` ldries46
2011-10-19  6:37                 ` Simon Wright
2011-10-19 14:48                 ` Alex Mentis
2011-10-24 17:04                   ` ldries46
2011-10-16 10:14 ` Vinzent Hoefler
replies disabled

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