Roles of Variables Home Page

Sajaniemi J., Kuittinen M. (2005)

An Experiment on Using Roles of Variables in Teaching Introductory Programming

Computer Science Education 15(1), 59-82.

Abstract: Roles of variables is a new concept that captures tacit expert knowledge in a form that can be taught in introductory programming courses. A role describes some stereotypic use of variables, and only ten roles are needed to cover 99 \% of all variables in novice-level programs.

This paper presents the results of an experiment where roles were introduced to novices learning Pascal programming. Students were divided into three groups that were instructed differently: in the traditional way with no treatment of roles; using roles throughout the course; and using a role-based program animator in addition to using roles in teaching.

The results show that students are not only able to understand the role concept and to apply it in new situations but---more importantly---that roles provide students a new conceptual framework that enables them to mentally process program information in a way demonstrating good programming skills. Moreover, the use of the animator seems to foster the adoption of role knowledge.

Back to the literature page


Last updated: July 11, 2005

saja.fi@gmail.com