arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.17894cs.SE
收藏

关于GenAI助手在代码理解中应用的系统文献综述:对计算教育研究与实践的启示

A Systematic Literature Review of the Use of GenAI Assistants for Code Comprehension: Implications for Computing Education Research and Practice

Oregon State University(俄勒冈州立大学)

Yunhan Qiao, Md Istiak Hossain Shihab, Christopher Hundhausen

AI总结:

本文通过系统文献综述探讨GenAI在代码理解中的应用,分析其在计算教育中的挑战与机遇,并提出未来研究方向。

摘要:

理解代码的能力长期以来被认为是软件工程中的一项基本技能。随着程序员越来越依赖生成式人工智能(GenAI)助手来开发代码解决方案,程序员理解GenAI解决方案以验证其适当性并将其正确整合到现有代码中的重要性日益增加。同时,GenAI工具越来越多地被用来为程序员提供针对由GenAI和人类编写的代码的定制解释。因此,在计算教育中,GenAI为试图理解计算机程序的学习者带来了新的挑战和机遇。为了为计算教育工作者提供基于证据的指导,以利用GenAI促进代码理解,并识别未来研究的方向,我们呈现了一项系统性文献综述(SLR),涵盖了利用GenAI增强代码理解的最新方法和工具。我们的SLR聚焦于2022年至2024年间发表的31项研究。尽管具有潜力,GenAI助手往往会产生不准确或模糊的解释,而初级程序员经常难以编写有效的提示,从而阻碍他们利用GenAI来帮助理解代码的能力。我们的综述对GenAI基于的方法和工具进行了分类,识别了研究它们的方法,并总结了它们有效性的实证评估。我们考虑了我们的发现对计算教育研究和实践的影响,并确定了未来研究的方向。

英文摘要:

The ability to comprehend code has long been recognized as an essential skill in software engineering. As programmers lean more heavily on generative artificial intelligence (GenAI) assistants to develop code solutions, it is becoming increasingly important for programmers to comprehend GenAI solutions so that they can verify their appropriateness and properly integrate them into existing code. At the same time, GenAI tools are increasingly being enlisted to provide programmers with tailored explanations of code written both by GenAI and humans. Thus, in computing education, GenAI presents new challenges and opportunities for learners who are trying to comprehend computer programs. To provide computing educators with evidence-based guidance on the use of GenAI to facilitate code comprehension and to identify directions for future research, we present a systematic literature review (SLR) of state-of-the-art approaches and tools that leverage GenAI to enhance code comprehension. Our SLR focuses on 31 studies published between 2022 and 2024. Despite their potential, GenAI assistants often yield inaccurate or unclear explanations, and novice programmers frequently struggle to craft effective prompts, thereby impeding their ability to leverage GenAI to aid code comprehension. Our review classifies GenAI-based approaches and tools, identifies methods used to study them, and summarizes the empirical evaluations of their effectiveness. We consider the implications of our findings for computing education research and practice, and identify directions for future research.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑