IEEE Transactions on Software Engineering · 1979 · 287 citations · 16 references
ComputingComputer SciencePsychologyPerformance MeasurementPsychometricsSoftware EngineeringMaintenance Performance AnalysisSoftware DesignSoftware MaintenanceSoftware MetricsSoftware RefactoringSyntactic ComplexityCode Complexity AnalysisCode ComprehensionCode MaintainabilityComplexityComplexity MeasurementHalstead MetricsProgram ComplexityProgram Comprehension
Three software complexity measures (Halstead’s E, McCabe’s u(G), and statement length) were compared to programmer performance on two maintenance tasks. The metrics correlated with recall accuracy, modification accuracy, and completion time—especially in unstructured, comment‑free code and for less experienced programmers—suggesting they capture psychological complexity when coding practices provide little assistance.
Three software complexity measures (Halstead's E, McCabe's u(G), and the length as measured by number of statements) were compared to programmer performance on two software maintenance tasks. In an experiment on understanding, length and u(G) correlated with the percent of statements correctly recalled. In an experiment on modification, most significant correlations were obtained with metrics computed on modified rather than unmodified code. All three metrics correlated with both the accuracy of the modification and the time to completion. Relationships in both experiments occurred primarily in unstructured rather than structured code, and in code with no comments. The metrics were also most predictive of performance for less experienced programmers. Thus, these metrics appear to assess psychological complexity primarily where programming practices do not provide assistance in understanding the code.
16
Thomas J. McCabe · IEEE Transactions on Software Engineering · 1976 · 5.8K citations
Olle Dahl, E. Dijkstra, C. A. R. Hoare · 1972 · 890 citations
Natural laws controlling algorithm structure?
M. H. Halstead · ACM SIGPLAN Notices · 1972 · 94 citations
Computing, Physics, Algorithms +5