Variables and Variable Naming in Popular Programming Textbooks for Children and Novices

Conference Paper (2024)
Author(s)

Vivian Van Der Werf (Universiteit Leiden)

Felienne Hermans (Vrije Universiteit Amsterdam)

M.M. Specht (TU Delft - Web Information Systems)

E.A. Aivaloglou (TU Delft - Web Information Systems)

Research Group
Web Information Systems
DOI related publication
https://doi.org/10.1145/3649165.3690112
More Info
expand_more
Publication Year
2024
Language
English
Research Group
Web Information Systems
Pages (from-to)
242-248
ISBN (electronic)
979-8-4007-0598-4
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

In programming, the concept of variables is central to learning other concepts like loops, functions, and conditions, and the way variables are explained influences students' understanding. Prior work observed Massive Open Online Courses (MOOCs) on introductory programming to investigate how the topic is addressed in teaching materials. Our work aims to verify if their results generalize to other materials by analyzing 13 popular Scratch and Python programming books and investigating (1) which definitions and analogies are currently being used to explain the variables, (2) looking into the programming concepts that are introduced alongside variables, and (3) analyzing if and how variable naming practices are introduced. Our results support previous findings from MOOCs, suggesting that CS educators and developers of educational materials for introductory programming could pay more attention to how they explain variables and can be more deliberate and consistent when it concerns the teaching of naming practices. Additionally, we found specific analogies used to explain variables, and differences between programming languages in the order that variables are introduced. Our work can be used to update current educational materials and inform the development of new ones.