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

COSPEX:一个面向初学者的程序理解工具

COSPEX: A Program Comprehension Tool for Novice Programmers

Ashutosh Rajput, Nakshatra Gupta, Sridhar Chimalakonda

摘要:

开发人员在软件维护过程中经常会遇到不熟悉的代码,这会消耗大量的时间来理解,特别是对于新手程序员。分析源代码并向开发人员提供关键信息的自动化技术可以有效地理解代码。研究人员已经提出了自动代码摘要技术,该技术通过生成简要摘要而不是帮助理解代码摘要来关注代码摘要。现有的调试器表示程序的执行状态,但它们不显示单个点的完整执行。研究表明,如果为新手程序员提供工作示例,则可以减少程序理解所需的努力。因此,我们提出了CO(通过程序执行使用摘要的理解)--一个Atom插件,它动态提取每行执行代码的关键信息,并以交互式示例式动态信息实例的形式将其呈现给开发人员。作为初步评估,我们在用户调查中向14名具有1年以上Python编程经验的本科生介绍了代码理解任务。我们观察到COdac帮助新手程序员理解程序,并提高他们对代码执行的理解。源代码和工具可在https://bit.ly/3utHOBM上获得,Youtube上的演示可在https://bit.ly/2Sp08xQ上获得。

英文摘要:

Developers often encounter unfamiliar code during software maintenance which consumes a significant amount of time for comprehension, especially for novice programmers. Automated techniques that analyze a source code and present key information to the developers can lead to an effective comprehension of the code. Researchers have come up with automated code summarization techniques that focus on code summarization by generating brief summaries rather than aiding its comprehension. Existing debuggers represent the execution states of the program but they do not show the complete execution at a single point. Studies have revealed that the effort required for program comprehension can be reduced if novice programmers are provided with worked examples. Hence, we propose COSPEX (Comprehension using Summarization via Program Execution) - an Atom plugin that dynamically extracts key information for every line of code executed and presents it to the developers in the form of an interactive example-like dynamic information instance. As a preliminary evaluation, we presented 14 undergraduates having Python programming experience up to 1 year with a code comprehension task in a user survey. We observed that COSPEX helped novice programmers in program comprehension and improved their understanding of the code execution. The source code and tool are available at: https://bit.ly/3utHOBM, and the demo on Youtube is available at: https://bit.ly/2Sp08xQ.

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

↑