HP3000-L Archives

December 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Dirickson <[log in to unmask]>
Reply To:
Steve Dirickson <[log in to unmask]>
Date:
Thu, 27 Dec 2001 17:44:36 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
> Has anyone read "The Science of Programming" by David Gries
> (Springer-Verlag
> 1981)?  IIRC, the point of the book was "Proving programs
> correct".  It took
> a mathematical-proof approach to programming.  One would
> create functions
> that acted like an a assert() function.  The one I remember

"Provably correct programming" has been one of the Holy Grails of
programming study for a while. So far, there hasn't been too much
progress, though there has been some interesting work on experimental
languages that support analytical correctness.

> was wp (weakest
> precondition).  Here one would check all inputs and outputs
> and essentially
> place assert() calls to make sure all conditions were met to
> guarantee the
> program worked as advertised.  I don't know if it every
> caught on but this
> conversation reminded me of the topic.

Using ASSERTs to validate assumptions about inputs and initial
conditions is a fundamental technique of pretty much any skilled
developer who has the option.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2