源代码理解:经验调查的当代定义与概念模型
Source Code Comprehension: A Contemporary Definition and Conceptual Model for Empirical Investigation
AI总结:
本文针对源代码理解缺乏统一定义的问题,提出了一个当代定义和概念模型,作为经验研究的参考框架,以支持次要研究并保障构念效度。
摘要:
无论是在调试、测试、代码审查,还是在最近兴起的与人工智能辅助的结对编程中:在所有这些活动中,软件工程师都需要理解源代码。因此,该领域正在进行大量研究,例如,探究什么使代码易于理解,以及哪些工具能最好地支持开发人员的理解过程。尽管任何代码理解研究人员在提及开发人员对一段代码有良好理解时,无疑对其含义有一个大致的想法,但迄今为止,研究界尚未成功地将源代码理解定义为一个概念。相反,在代码理解的主要研究中,一种由任务隐含的定义占主导地位,即代码理解就是实验任务所衡量的内容。这种方法有两个负面后果。首先,它使得开展次要研究变得困难。目前,每项代码理解主要研究都使用不同的理解任务和衡量标准,因此不清楚不同研究是否旨在衡量相同的构念。其次,主要研究的作者在试图证明其设计决策的合理性时,会遇到困难,因为他们没有对其试图衡量的内容进行定义。对描述不充分的构念进行操作化会发生,这对构念效度构成威胁。考虑到过去五十年的理论,定义代码理解的任务并非易事。这也不是每项主要研究的作者都必须独自完成的任务。因此,本文构成了一份参考著作,定义了源代码理解,并提出了一个概念框架,研究人员可以在其中锚定其经验性代码理解研究。
英文摘要:
Be it in debugging, testing, code review or, more recently, pair programming with AI assistance: in all these activities, software engineers need to understand source code. Accordingly, plenty of research is taking place in the field to find out, for example, what makes code easy to understand and which tools can best support developers in their comprehension process. And while any code comprehension researcher certainly has a rough idea of what they mean when they mention a developer having a good understanding of a piece of code, to date, the research community has not managed to define source code comprehension as a concept. Instead, in primary research on code comprehension, an implicit definition by task prevails, i.e., code comprehension is what the experimental tasks measure. This approach has two negative consequences. First, it makes it difficult to conduct secondary research. Currently, each code comprehension primary study uses different comprehension tasks and measures, and thus it is not clear whether different studies intend to measure the same construct. Second, authors of a primary study run into the difficulty of justifying their design decisions without a definition of what they attempt to measure. An operationalization of an insufficiently described construct occurs, which poses a threat to construct validity. The task of defining code comprehension considering the theory of the past fifty years is not an easy one. Nor is it a task that every author of a primary study must accomplish on their own. Therefore, this paper constitutes a reference work that defines source code comprehension and presents a conceptual framework in which researchers can anchor their empirical code comprehension research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。