Oct
Guest seminar by Matthias Hauswirth: Seeing Programs as Trees in Programming Education
Associate Professor Matthias Hauswirth, Università della Svizzera italiana, Lugano, Switzerland, will give a seminar at 10:15 on Friday October 30, in E:2116. His research focuses on the boundary between programming language design and implementation and computing education, with a primary focus on how people learn to program.
- When: 10:15-11:00, Friday, Oct 30. After the seminar there will be time for discussions with those interested.
- Where: E:2116
- Speaker: Matthias Hauswirth, Associate Professor at Università della Svizzera italiana, Lugano, Switzerland where he leads the Lugano Computing Education research lab (LuCE)
- Title: Seeing Programs as Trees in Programming Education
Abstract
Programs are usually presented as text, but programming languages impose a hierarchical structure on that text. Abstract syntax trees (ASTs) make this structure explicit, representing programs in terms of their language constructs and the relationships between them. While ASTs are fundamental to compilers, interpreters, and program analysis tools, they can also serve an educational purpose.
In this talk, we explore how tree representations of programs can support programming education by providing a "notional machine": a conceptual model for understanding programs, reasoning about language features, and identifying errors. We present a study investigating the kinds of mistakes that become apparent when program expressions are represented as trees. We then introduce PyTamaro, a Python graphics library designed for educational programming, and TamaroCards, a visual, tree-based representation of PyTamaro expressions. Finally, we present a survey of high-school informatics teachers showing that they favor detecting name and type errors statically, before program execution, even in Python. They also see value in type annotations when these enable additional checks.
Together, these contributions explore how making program structure and properties explicit can help learners and teachers reason about programs and programming errors.
--
URLs:
Link to PyTamaro
About the event
Location:
E:2116, E-huset, Lund
Contact:
gorel [dot] hedin [at] cs [dot] lth [dot] se