COMMON COGNITIVE REPRESENTATIONS OF PROGRAM CODE ACROSS TASKS AND LANGUAGES

被引:15
作者
ROBERTSON, SP
YU, CC
机构
[1] Psychology Department, Rutgers University, New Brunswick, NJ 08903, Busch Campus
来源
INTERNATIONAL JOURNAL OF MAN-MACHINE STUDIES | 1990年 / 33卷 / 03期
关键词
D O I
10.1016/S0020-7373(05)80123-3
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Plans are underlying cognitive structures used by programmers to represent code. In two studies we examined the content of plan-based representations and sought to show that common representations are used for programs that instantiate the same plans, even when they perform different tasks and are written in different languages (Pascal or FORTRAN). Our results support plan-based models and show that the organizing structures for chunks of code are abstract programming goals. The same abstract structures are formed for programs that perform different tasks using the same plans and for programs written in different languages but using the same plans. While plans were the primary organizing structures for code representations, other task-related information also played a role suggesting that programmers really utilize multiple representations. We advocate viewing code comprehension more like a plan recognition process and less like a text comprehension process. © 1990 Academic Press Limited.
引用
收藏
页码:343 / 360
页数:18
相关论文
共 17 条
[1]   PROBLEM-SOLVING AND THE DEVELOPMENT OF ABSTRACT CATEGORIES IN PROGRAMMING-LANGUAGES [J].
ADELSON, B .
MEMORY & COGNITION, 1981, 9 (04) :422-433
[2]  
ATWOOD ME, 1978, ARI TR78A21 US ARM R
[3]  
Bonar J., 1985, HUM COMPUT INTERACTI, V1, P133
[4]  
Chomsky N., 1968, LANGUAGE MIND
[5]  
EHRLICH K, 1984, HUMAN FACTORS COMPUT
[6]  
Fodor J. A., 1979, LANGUAGE THOUGHT
[7]   HIERARCHICAL CLUSTERING SCHEMES [J].
JOHNSON, SC .
PSYCHOMETRIKA, 1967, 32 (03) :241-254
[8]  
KRUSKAL J., 1978, MULTIDIMENSIONAL SCA
[9]   STIMULUS STRUCTURES AND MENTAL REPRESENTATIONS IN EXPERT COMPREHENSION OF COMPUTER-PROGRAMS [J].
PENNINGTON, N .
COGNITIVE PSYCHOLOGY, 1987, 19 (03) :295-341
[10]  
Rist R. S, 1986, EMPIRICAL STUDIES PR