Roles of Variables Home Page

Sajaniemi J., Ben-Ari M., Byckling P., Gerdt P., Kulikova Y. (2006)

Roles of Variables in Three Programming Paradigms

Computer Science Education 16(4), 261-279.

Abstract: Roles can be assigned to occurrences of variables in programs according to a small number of stereotypical patterns of use. Studies on explicitly teaching roles to novices learning programming have shown that roles are an excellent pedagogical tool for clarifying the structure and meaning of programs and that their use improves students' programming skills. This paper describes how roles can be applied in various programming paradigms and presents the results of three investigations designed to test the understandability and acceptability of the role concept and of the individual roles in procedural, object-oriented and functional programming. Based on the results, two new roles and small modifications to the definitions of the original roles are also suggested.

Back to the literature page


Last updated: December 11, 2006

saja.fi@gmail.com