Helping programmers understand computer programs
Open Access
- 1 November 1995
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGMIS Database: the DATABASE for Advances in Information Systems
- Vol. 26 (4) , 25-46
Abstract
A large portion of computer programmers' efforts to maintain, test, and debug computer programs is spent understanding, or comprehending, the existing program. Current theories of program comprehension have not considered the circumstances that cause programmers to use different approaches to understanding programs. Metacognition may provide some insight into the comprehension process. Metacognition is a psychological terms that refers to "one's knowledge concerning one's own cognitive processes" (Flavell, 1976) and influences the execution of cognitive tasks. Through metacognition, a person confronting a cognitive task can select a strategy, and then monitor and regulate their progress on a task.This study investigates the use of metacognition by programmers to purposefully (deliberately) choose a comprehension strategy. The results of this study support the view that programmers use metacognition when studying computer programs. Specifically, two-thirds of the programmers indicated that, in general, they purposefully choose a comprehension strategy. When studying a computer program from an unfamiliar application domain, however, programmers who generally use metacognition had lower levels of comprehension than when working in a familiar domain or when compared to those programmers who do not use metacognition.These results suggest that programmers use metacognition during computer program comprehension and that the use of metacognition influences how well they understand a program. That metacognition reduces comprehension, but only in certain circumstances, leads to the speculation that programmers' metacognitive heuristics may be too general and that programmers need to develop more specific metacognitive heuristics to aid comprehension in a wider range of circumstances.Keywords
This publication has 18 references indexed in Scilit:
- Domain model-driven software reengineering and maintenanceJournal of Systems and Software, 1993
- An Empirical Investigation of the Effects of Decision Aids on Problem‐Solving Processes*Decision Sciences, 1992
- The initial stage of program comprehensionInternational Journal of Man-Machine Studies, 1991
- Approaches to program comprehensionJournal of Systems and Software, 1991
- The validity of verbal protocolsMemory & Cognition, 1989
- An experimental investigation of software metrics and their relationship to software development effortIEEE Transactions on Software Engineering, 1989
- The Problem of Statistical Power in MIS ResearchMIS Quarterly, 1989
- The nature of mental abilities.American Psychologist, 1979
- Telling more than we can know: Verbal reports on mental processes.Psychological Review, 1977
- A Coefficient of Agreement for Nominal ScalesEducational and Psychological Measurement, 1960