Thread View: comp.specification
1 messages
1 total messages
Started by Don Cohen
Fri, 09 Nov 1990 23:39
Re: Difference between Spec and Code
Author: Don Cohen
Date: Fri, 09 Nov 1990 23:39
Date: Fri, 09 Nov 1990 23:39
18 lines
1575 bytes
1575 bytes
I've always thought that a specification is a statement of intent, i.e., it says whatever the specifier considers important. Ideally it should say everything that the specifier wants to say, nothing more, and should be easy to understand. Most often, the IO behavior of a program is what people are interested in, but often it is important to specify such things as timing constraints. It is also conceivable that it might be important to me that the program to do some task be written in Fortran, or that it not use the SQRT function, etc. I don't know any formal languages that are good at all such kinds of specifications, although there are some that are good at describing IO behavior without describing much else. We all know what code is, on the other hand. Clearly the "satisfies" relationship between spec and code is many to many. It is impossible to guess from an implementation which specification it was meant to satisfy. Your attempt to "optimize" an implementation might make it no longer "work" if, say, the purpose of that "useless" loop you removed was to provide a delay.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads