Thank you for participating in this usability test. We are evaluating a tool called Pyttern Visualizer, a visualization tool for analyzing Python source code files against predefined patterns. Your feedback will help us improve the tool. There are no right or wrong answers — we are testing the tool, not you.
For the following tasks (Task A and Task B), imagine you are a programming instructor. You have given your students a coding assignment and received their submissions. You want to use the Pyttern Visualizer to check which students followed expected coding patterns and which did not.
At the end there will be a Feedback section for you to share your observations.
Before you start, please clone the following repository and run the Pyttern Visualizer locally on your computer. The README contains step-by-step setup instructions.
Repository link: https://github.com/berkaymuratt/pyttern-visualizer-setup
---
-- TASK A --
You are teaching an introductory Python class. You assigned your students to implement a Calculator class. You have received 5 student submissions and you want to check whether they follow good coding practices.
You are given 3 pattern files. Each pattern detects a specific code structure. Your task is to build a compound pattern named ProperClassInit that combines these patterns to enforce the following rule:
"A proper class initialization means: the class has an __init__ method, AND the class has at least one method that returns a value, AND the __init__ method does NOT return a value."
Once you have built the compound pattern, upload the student code files and analyze the results
INGInious