一句话:结合访谈、观察与反思调查,揭示本科生在代码审查中理解重构类代码变更时的主要障碍。
现代代码审查(MCR)是软件工程组织的重要实践,本科课程也常教授相关流程,但已有研究多关注专业环境中的失败模式,较少探讨学生在特定情境下面临的障碍。本文在初级软件工程课程中结合访谈、观察与调查:先访谈29名本科生,了解其代码审查经历;随后让同课程44名学生完成八项代码变更理解活动,活动提供熟悉代码库中的重构 pull request,并收集其判断准确性与挑战反馈;最后进行反思调查。该方法组合用于系统识别学生在评估代码变更时的障碍。
Modern code review (MCR) is a key practice for many software engineering organizations, so undergraduate software engineering courses often teach some form of it to prepare students. However, research on MCR describes how many its professional implementations can fail, to say nothing on how these barriers manifest under students' particular contexts. To uncover barriers students face when evaluating code changes during review, we combine interviews and surveys with an observational study. In a junior-level software engineering course, we first interviewed 29 undergraduate students about their experiences in code review. Next, we performed an observational study that presented 44 students from the same course with eight code change comprehension activities. These activities provided students with pull requests of potential refactorings in a familiar code base, collecting feedback on accuracy and challenges. This was followed by a reflection survey.