First results of an experiment on using roles of variables in teaching

Marja Kuittinen; Jorma Sajaniemi

Roles of variables is a new concept that captures tacit expert knowledge in a form that can, e.g. be taught in in- troductory 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 first results of an experiment where roles were introduced to novices learning Pascal pro- gramming. 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 suggest that the introduction of roles improves program comprehension and program writing skills. Moreover, the use of the animator affects the way students describe programs: they stress data-related issues concerning the deep structure of a program, as opposed to directly visible operations and control structures.

Type of Publication: Paper
Conference: PPIG 2003 - 15th Annual Workshop
Publication Year: 2003
Paper #: 13
TitleFirst results of an experiment on using roles of variables in teaching
Publication TypePaper
AuthorsKuittinen, M, Sajaniemi, J
PPIG Workshop: