Saturday August 25 2018, C3.6, 11:10 AEST


Python is a great beginners programming language. Unfortunately, many of the exception messages coming from the standard library and parser are very unhelpful to a newbie programmer. We identify some of these cases, make modifications to improve these messages, and assess their effectiveness.


Python is a great beginners programming language. Unfortunately, many of the exception messages coming from the standard library and parser are very unhelpful to a newbie programmer. By analysing tens of thousands of beginner programmer interactions, we identify a number of these cases. Based on our findings, we make some simple modifications to common standard library and parser error messages to provide more information about what went wrong, and to help guide the programmer to fixing the issue. We assess the effectiveness of these changes on a large set of beginner programmers, analysing whether these relatively naïve changes improve the rate of self-recovery in a teaching context, and whether these students are more likely to continue further in the course when they have to battle fewer cryptic error messages.


Watch 'Stupid computer! Improving error messages for beginner programmers' on PyCon AU's YouTube account

Tim Dawborn

Tim Dawborn
Grok Learning
@timdawborn


Tim has been teaching Python in many different contexts to university and school students since 2007. Amongst other hats, Tim is CTO of Grok Learning, an online learn-to-code platform, and a lecturer at the National Computer Science School (NCSS).