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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,27544cb48c942326 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.30.34 with SMTP id p2mr18327623pbh.4.1319722303685; Thu, 27 Oct 2011 06:31:43 -0700 (PDT) Path: p6ni3397pbn.0!nntp.google.com!news1.google.com!news4.google.com!feeder.news-service.com!feeder.news-service.com!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 27 Oct 2011 15:31:03 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Length of unbounded_string. References: <4ea68441$0$8041$703f8584@textnews.kpn.nl> <4ea94067$0$6625$9b4e6d93@newsspool2.arcor-online.net> In-Reply-To: Message-ID: <4ea95d17$0$7612$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 27 Oct 2011 15:31:03 CEST NNTP-Posting-Host: d2585212.newsspool1.arcor-online.net X-Trace: DXC=9B:>hU=k[Ji[F<50eo:0knic==]BZ:afn4Fo<]lROoRa<`=YMgDjhgb2\jLh>_cHTX3jm8f4naaW3J7h X-Complaints-To: usenet-abuse@arcor.de Xref: news1.google.com comp.lang.ada:18722 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2011-10-27T15:31:03+02:00 List-Id: 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.