For Authors_For Subscribers_For Librarians_For SocietiesFor Advertisers

Home | About Us | Contact Us | Site Map | FAQs

journal home
 
Services for Readers
Services for authors
Customer Services


Autumn 2004, Volume 3, Number 3, Pages 137-153
Table of contents   Previous  Full text  Next   PDF
Original Article
Visualizing roles of variables in program animation
Jorma Sajaniemi1 and Marja Kuittinen1

1Department of Computer Science, University of Joensuu, Finland

Correspondence to: Jorma Sajaniemi, Department of Computer Science, University of Joensuu, PO Box 111, FIN-80101 Joensuu, Finland. Tel: +358 13 251 7933; Fax: +358 13 251 7955; E-mail: Jorma.Sajaniemi@joensuu.fi

Abstract

Visualizations may be used to assist in learning elementary computer programming - a skill that is hard to acquire by many students. This article presents a program animation system, PlanAni, that is based on the concept of the roles of variables. Roles represent schematic uses of variables that occur in programs over and over again, and a set of nine roles covers practically all variables in novice-level programs. PlanAni has been evaluated in a classroom experiment comparing traditional teaching with role-based teaching and animation. The results suggest that the introduction of roles provides students with a new conceptual framework that enables them to mentally process program information in a way similar to that of good code comprehenders. The use of role-based animation seems to assist in the adoption of role knowledge and expert-like programming strategies. A semi-structured interview with the teacher indicates that students like to work with the animator and that the system clarifies many concepts in programming.

Information Visualization (2004) 3, 137-153. doi:10.1057/palgrave.ivs.9500075
Published online 3 June 2004

Keywords

Program animation; roles of variables; classroom experiment

Received 1 September 2003; revised 10 March 2004; accepted 29 March 2004; published online 3 June 2004
Table of contents   Previous  Full text  Next   PDF