Abstract
We have designed and implemented an algorithm which measures APL-programs in the sense of software science by M.H. Halstead /1/. The reader is assumed to be familiar with the theories of software science.
Our purpose has been to find the best possible algorithm to automatically analyse large quantities of APL-programs. We have also used our measuring tool to make some experiments to find out if APL-programs and workspaces obey the laws of software science or not.
Becasue our purpose was to analyse large quantities, i.e. hundreds of programs we have not implemented an algorithm, which gives exactly correct results from software science point of view, because this would necessitate manual clues to the analysing algorithm and thus an interactive mode of analysis. Instead of it we have strived for a tool, which carries out the analysis automatically and as correctly as possible.
In the next section some difficulties encountered in the design of the measuring algorithm and some inherent limitations of it are discussed. Section 3 summarises the sources of errors in the analysis carried out by our algorithm, while section 4 gives a more detailed description of the way analysis is carried out.
The remaining sections of this paper report on some experiments we have carried out using our measuring tool. The purpose of these experiments has been to evaluate the explaining power of Halstead's theory in connection of APL-programs. However, no attempt has been made to process the results of the experiments statistically. The results of the experiments have been treated here only when 'obvious' (in)compatibilities between the theory and the results have been observed. Possible reasons for the (in)compatibilities are also pointed out.
- 1 Halstead, M.H. 'Elements of Software Science', Elsevier North Holland, New York, 1977. Google ScholarDigital Library
- 2 Henderson, P. 'Functional Programming - Application and Implementation', Prentice-Hall, London, 1980. Google ScholarDigital Library
- 3 'Tehokas APL-ohjelmointi', report S2, Finnish APL association, Helsinki, 1981.Google Scholar
Index Terms
- APL and Halstead's theory: A measuring tool and some experiments
Recommendations
APL and Halstead's theory: A measuring tool and some experiments
SCORE '82: Selected papers of the 1982 ACM SIGMETRICS workshop on Software metrics: part 2We have designed and implemented an algorithm which measures APL-programs in the sense of software science by M.H. Halstead /1/. The reader is assumed to be familiar with the theories of software science.
Our purpose has been to find the best possible ...
Extending Halstead's software science for a more precise measure of APL
Software engineering is a growing part of computer science. Software engineering attempts to put measurements and metrics into the area of software programming. One of these metrics, Halstead's software science [1], measures a program's difficulty, a ...
Extending Halstead's software science for a more precise measure of APL
APL '82: Proceedings of the international conference on APLSoftware engineering is a growing part of computer science. Software engineering attempts to put measurements and metrics into the area of software programming. One of these metrics, Halstead's software science [1], measures a program's difficulty, a ...
Comments