Object-oriented program comprehension: Effect of expertise, task and phase

被引:59
作者
Burkhardt J.-M. [1 ,2 ]
Détienne F. [1 ]
Wiedenbeck S. [3 ]
机构
[1] Eiffel Group, Cognition and Cooperation in Design, INRIA Domaine de Voluceau, Le Chesnay, Cedex 78153, Rocquencourt
[2] Université Paris, Paris 75005
[3] College of Information Science and Technology, Drexel University Philadelphia
关键词
Expertise; Mental representation; Object-oriented programming; Program comprehension; Program model; Situation model; Text comprehension;
D O I
10.1023/A:1015297914742
中图分类号
学科分类号
摘要
The goal of our study is to evaluate the effect on program comprehension of three factors that have not previously been studied in a single experiment. These factors are programmer expertise (expert versus novice), programming task (documentation versus reuse), and the development of understanding over time (phase 1 versus phase 2). This study is carried out in the context of the mental model approach to comprehension based on van Dijk and Kintsch's model [(1983) Strategies of Discourse Comprehension. New York: Academic]. One key aspect of this model is the distinction between two kinds of representation the reader might construct from a text: (1) the textbase, which refers to what is said in the text and how it is said, and (2) the situation model, which represents the situation referred to by the text. We have evaluated the effect of the three factors mentioned above on the development of both the textbase (or program model) and the situation model in object-oriented program comprehension. We found a four-way interaction of expertise, phase, task and type of model. For the documentation group we found that experts and novices differ in the elaboration of their situation model but not their program model. There was no interaction of expertise with phase and type of model in the documentation group. For the reuse group, there was a three-way interaction between phase, expertise and type of model. For the novice reuse group, the effect of the phase was to increase the construction of the situation model but not the program model. With respect to the task, our results show that novices do not spontaneously construct a strong situation model but are able to do so if the task demands it.
引用
收藏
页码:115 / 156
页数:41
相关论文
共 61 条
[1]  
Anderson J.R., Language, Memory, and Thought, (1976)
[2]  
Atwood M.E., Ramsey H.R., Cognitive Structures in the Comprehension and Memory of Computer Programs: An Investigation of Computer Program Debugging, (1978)
[3]  
Bergantz D., Hassell J., Information relationships in PROLOG programs: How do programmers comprehend functionality?, International Journal of Man-Machine Studies, 35, pp. 313-328, (1991)
[4]  
Black J.B., Kay D.S., Soloway E., Goal and plan knowledge representations: From stories to text editors and programs, Interfacing Thought: Cognitive Aspects of Human-Computer Interaction, (1986)
[5]  
Boehm-Davis D.A., Holt R.W., Schultz A.C., The role of program structure on program maintenance, International Journal of Man-Machine Studies, 36, pp. 21-63, (1992)
[6]  
Borgida A., Greenspan S., Mylopoulos J., Knowledge representation as the basis for requirements specifications, Readings in Artificial Intelligence and Software Engineering, pp. 561-570, (1986)
[7]  
Bransford J.D., Johnson M.K., Contextual prerequisites for understanding: Some investigations of comprehension and recall, Journal of Verbal Learning and Verbal Behavior, 11, pp. 717-726, (1972)
[8]  
Burkhardt J.-M., Réutilisation de Solutions en Conception Orientée-objet: Un Modèle Cognitif des Mécanismes et Représentations Mentales (Reuse of Object-Oriented Design Solutions: A Model of Cognitive Process and Representations), (1997)
[9]  
Burkhardt J.-M., Detienne F., An empirical study of software reuse by experts in object-oriented design, Proceedings of INTERACT'95, pp. 133-138, (1995)
[10]  
Burkhardt J.-M., Detienne F., Wiedenbeck S., Mental representations constructed by experts and novices in object-oriented program comprehension, INTERACT'97, (1997)