一句话:提出基于游戏的学习环境 Refactoria,通过交互玩法帮助开发者掌握代码坏味识别与重构概念。
重构是软件维护中的关键实践,用于在改进设计缺陷的同时提升编码实践。尽管已有交互学习、增量学习、游戏化、可视化和实验等多种教学与训练方法,但识别和重构代码坏味仍需经验积累,开发者可能因缺乏动机而不愿采用重构工具。本文提出 Refactoria,一个创新的基于游戏的学习环境,通过交互式玩法支持代码坏味与重构概念的学习,旨在兼顾教学创新与实践相关性。作者公开了 GitHub 源码与演示视频。摘要未报告正式用户研究或量化结果,主要贡献为工具设计、实现与可获取的演示。
Refactoring is a crucial practice in software maintenance, that aims at improving coding practices while addressing design flaws. Due to the importance of the topic, several methods and strategies have been proposed for teaching and training refactoring, including interactive learning, incremental learning, gamification, visualization, and experimentation. However, the skills needed to identify and refactor code smells come from training and experience, and the lack of motivation may hinder developers in the adoption of refactoring tools. In this paper, we aim at developing Refactoria, an innovative game-based learning environment that supports the acquisition of code smell and refactoring concepts through interactive gameplay. We believe that Refactoria contributes a unique blend of pedagogical innovation and practical relevance. The source code is publicly available on GitHub at https://github.com/SE4AIResearch/RefactorGame. The demonstration video is available at https://youtu.be/VOJcB3qcLJY.
@inproceedings{AlOmarHPLE26,
title = {Refactoria: A Game-Based Tool for Learning Code Refactoring},
author = {Eman Abdullah AlOmar and David Van Hise and Stephen Pachucki and Nerissa Lundquist and Christopher Engelbart},
booktitle = {FSE},
year = {2026},
doi = {10.1145/3803437.3805786}
}