PROGRAM DESIGN BY INFORMAL ENGLISH DESCRIPTIONS
PROGRAM DESIGN BY INFORMAL ENGLISH DESCRIPTIONS
复制标题
DOI:
10.1145/182.358441
复制
发表时间:
1983-01-01
影响因子:
22.7
通讯作者:
ABBOTT, RJ
中科院分区:
文献类型:
--
作者:
ABBOTT, RJ
This article illustrates the use of data types in program design by demonstrating how an arbitrary procedure, initially stated in English, can be transformed into a program written in Ada. 1 The resulting program corresponds quite closely to the original English algorithm. Most striking is the parallel between the noun phrases~ n the original and the data types and program objects in the program. The bulk of this article is a discussion of that correspondence and of how to make the transformation between noun phrases and data types and objects.We discuss program development from the traditional viewpoint of program design--where a program is a sequence of processing steps. We focus on the process by which one creates a program to achieve a programming goal, having been given an intuitive description of the goal. Most programmers find themselves in this situation most of the time. In solving such a problem, one must develop both a process to be performed and a collection of objects on which to perform it. Development of the process proceeds in parallel with the development of the object definitions. Although certainly not as formal as the methods of Dijkstra [3], Hoare [6], Wirth [10], and others, the focus is similar--the development of precise and understandable programs. The method presented extends and makes more intuitive the approaches of, for example, Parnas [8] and Liskov [7]. In particular, the paper identifies common nouns as a natural