Treffer: Visualisering av referenser i Python – Utvecklandet av LearnyPy, en webbapplikation för att främja undervisningen av programmering

Title:
Visualisering av referenser i Python – Utvecklandet av LearnyPy, en webbapplikation för att främja undervisningen av programmering
Contributors:
Göteborgs universitet/Institutionen för data- och informationsteknik, University of Gothenburg/Department of Computer Science and Engineering
Publication Year:
2023
Collection:
University of Gothenburg: GUPEA (Gothenburg University Publications Electronic Archive)
Document Type:
Fachzeitschrift text
File Description:
application/pdf
Language:
Swedish
Accession Number:
edsbas.5B32D7C9
Database:
BASE

Weitere Informationen

Understanding how variables and objects are connected can be difficult for novice programmers. The need for educated programmers is growing and effective tools to teach programming are therefore desirable. This project aims to provide a tool to simplify the procedure of teaching references in Python to new programmers. The target group for using the tool is both those new to programming and those teaching it. The tool should be able to handle user input containing Python code and illustrate how each line of code affects the references. The intention with this illustration is to contribute to a better understanding of the results from executing the code. The resulting product, LearnyPy, is a website containing a code editor where the user can enter Python code they want to visualize. LearnyPy also has a toolbar that allows the user to execute the whole code all at once or in steps. The execution of the code is handled by Skulpt, an in-browser implementation of Python. For each execution the current state is visualized by a graph, using the library d3-graphviz. The graph contains all variables and objects as nodes and the references are shown as directed edges. A terminal is also provided to show output and possible error messages. Because LearnyPy is implemented as a website it is accessible to the public. The user interface of the website is built using the JavaScript library React. The project is conducted with the intention to support further work on the codebase. The result shows that the project meets the purpose to a large extent. There is opportunity for improvement and further work is encouraged regarding the user experience. ; Att förstå hur variabler och objekt relaterar till varandra kan vara svårt för nybörjare inom programmering. Behovet av utbildade programmerare växer och effektiva redskap för att undervisa programmering är därför önskvärt. Syftet med detta projekt är att tillhandahålla ett redskap som förenklar processen att undervisa referenser i Python till nya programmerare. Den tänkta ...