[Paper Review] Object-Oriented Program Comprehension: Effect of Expertise, Task and Phase
This study investigates how programmer expertise, programming task (documentation vs. reuse), and comprehension phase affect the development of textbase (program model) and situation model (mental understanding) in object-oriented program comprehension. Using a mental model framework, it reveals a four-way interaction: experts and novices differ in situation model construction during documentation, while reuse tasks drive novices to build situation models only when required, highlighting task-driven cognitive adaptation in comprehension processes.
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 vs. novice), programming task (documentation vs. reuse), and the development of understanding over time (phase 1 vs. 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). 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.
Motivation & Objective
- To examine the combined effects of programmer expertise, task type, and comprehension phase on program comprehension.
- To investigate how these factors influence the construction of two mental model types: textbase (program model) and situation model (understanding of system behavior).
- To assess whether task demands (documentation vs. reuse) differentially affect model development across expertise levels.
- To evaluate how comprehension evolves over time (phase 1 vs. phase 2) in relation to model construction.
Proposed method
- Conducted an experimental study with novice and expert programmers using real-world object-oriented code.
- Employed a within-subjects design with two phases (phase 1 and phase 2) to assess changes in comprehension over time.
- Assigned participants to two task conditions: documentation and code reuse.
- Measured model construction through post-task assessments focusing on textbase (syntax and structure) and situation model (functional understanding and system behavior).
- Used the mental model framework of van Dijk and Kintsch (1983) to categorize and analyze participants’ comprehension outputs.
- Analyzed data using a four-way ANOVA to test interactions between expertise, task, phase, and model type.
Experimental results
Research questions
- RQ1How does programmer expertise influence the development of textbase and situation models during program comprehension?
- RQ2How does the type of programming task (documentation vs. reuse) affect model construction in novice and expert programmers?
- RQ3How does the comprehension process evolve across two phases (phase 1 and phase 2) in terms of model development?
- RQ4Is there a significant interaction between expertise, task, phase, and model type in program comprehension?
Key findings
- A four-way interaction was found among expertise, phase, task, and model type, indicating complex, interdependent effects on comprehension.
- In the documentation group, experts and novices differed in situation model construction but not in program model development, suggesting experts form deeper conceptual understanding regardless of task.
- For the reuse group, a three-way interaction between phase, expertise, and model type emerged: novices improved in situation model construction over time, but not in program model construction.
- Novices did not spontaneously construct strong situation models during comprehension, but were capable of doing so when the task explicitly required it, indicating task-driven model building.
- The phase effect increased situation model development in novice reuse participants, showing that time and task context enhance conceptual understanding in less experienced developers.
- Program model construction remained largely unaffected by phase, task, or expertise in most conditions, indicating that syntactic understanding is more stable and less influenced by external factors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.