{"title":"从电子游戏到调试代码","authors":"S. Deitz, U. Buy","doi":"10.1145/2896958.2896964","DOIUrl":null,"url":null,"abstract":"Novice programmers often struggle with many concepts underlying computer programming. The concept of a program variable--that is, a named storage location--is a centerpiece of the programming languages typically taught in introductory computer science courses including C, Java, JavaScript, Python, and C++. However, to date empirical studies suggest that misinterpretation of the state of a program remains a primary source of errors by novice programmers. We address this challenge by defining a game-based approach to interactive program debugging and by emphasizing the concept of program state in our approach. We specifically chose the metaphor of the popular ``Space Invaders'' videogame to provide a visual interpretation that reinforces the notion of program state in a way likely to be attractive to college students majoring in computer science. Our visualization technique and the resulting toolset are intended to steer students toward a debugging mindset centered on read and write operations of program variables. Here we discuss the key aspects of our game-based debugging approach. We also report preliminary results from field studies with actual college students who used our toolset to debug simple programs in which we injected faults.","PeriodicalId":339009,"journal":{"name":"2016 IEEE/ACM 5th International Workshop on Games and Software Engineering (GAS)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-05-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"From Video Games to Debugging Code\",\"authors\":\"S. Deitz, U. Buy\",\"doi\":\"10.1145/2896958.2896964\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Novice programmers often struggle with many concepts underlying computer programming. The concept of a program variable--that is, a named storage location--is a centerpiece of the programming languages typically taught in introductory computer science courses including C, Java, JavaScript, Python, and C++. However, to date empirical studies suggest that misinterpretation of the state of a program remains a primary source of errors by novice programmers. We address this challenge by defining a game-based approach to interactive program debugging and by emphasizing the concept of program state in our approach. We specifically chose the metaphor of the popular ``Space Invaders'' videogame to provide a visual interpretation that reinforces the notion of program state in a way likely to be attractive to college students majoring in computer science. Our visualization technique and the resulting toolset are intended to steer students toward a debugging mindset centered on read and write operations of program variables. Here we discuss the key aspects of our game-based debugging approach. We also report preliminary results from field studies with actual college students who used our toolset to debug simple programs in which we injected faults.\",\"PeriodicalId\":339009,\"journal\":{\"name\":\"2016 IEEE/ACM 5th International Workshop on Games and Software Engineering (GAS)\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2016-05-14\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2016 IEEE/ACM 5th International Workshop on Games and Software Engineering (GAS)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/2896958.2896964\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 IEEE/ACM 5th International Workshop on Games and Software Engineering (GAS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2896958.2896964","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Novice programmers often struggle with many concepts underlying computer programming. The concept of a program variable--that is, a named storage location--is a centerpiece of the programming languages typically taught in introductory computer science courses including C, Java, JavaScript, Python, and C++. However, to date empirical studies suggest that misinterpretation of the state of a program remains a primary source of errors by novice programmers. We address this challenge by defining a game-based approach to interactive program debugging and by emphasizing the concept of program state in our approach. We specifically chose the metaphor of the popular ``Space Invaders'' videogame to provide a visual interpretation that reinforces the notion of program state in a way likely to be attractive to college students majoring in computer science. Our visualization technique and the resulting toolset are intended to steer students toward a debugging mindset centered on read and write operations of program variables. Here we discuss the key aspects of our game-based debugging approach. We also report preliminary results from field studies with actual college students who used our toolset to debug simple programs in which we injected faults.