Answers are grounded in this paper and cite their sources.
Experiment demonstrates how programmers use non-contiguous program slices for debugging unfamiliar code, indicating a strategic approach.
Computer programmers break apart large programs into smaller coherent pieces. Each of these pieces: functions, subroutines, modules, or abstract datatypes, is usually a contiguous piece of program text. The experiment reported here shows that programmers also routinely break programs into one kind of coherent piece which is not coniguous. When debugging unfamiliar programs programmers use program pieces called slices which are sets of statements related by their flow of data. The statements in a slice are not necessarily textually contiguous, but may be scattered through a program.
No takes yet. Share an insight, caveat, or question.
Mark Weiser (1982) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: