paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Causal or Correlational? A Cohort Study on the Effects of Code Smells on Class Change- and Fault-Proneness

因果还是相关?关于代码坏味道对类变更倾向与故障倾向影响的队列研究
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 1/10 · 该论文是软件仓库挖掘与实证软件工程研究,关注代码坏味道对类变更/故障倾向的因果影响,与用户重点关注的 PL/AI 交叉、静态分析赋能 Agentic/ML 系统、浮点程序分析、贝叶斯程序分析及 LLM 与程序分析结合均无直接关联。引用 2 inbox
Sabato Nocera, Sira Vegas, Giuseppe Scanniello, Massimiliano Di Penta, Natalia Juristo
crossref: 2026-09-12

AI 速览

一句话:将队列研究引入软件仓库分析,检验代码坏味道对类变更与故障倾向的因果效应。

论文关注代码坏味道是否真的导致类更易变更或更易出错。以往仓库挖掘研究多报告相关性,难以推断因果。作者将流行病学中的队列研究设计实例化到软件仓库研究,复用 Khomh 等人的数据,考察 11 类代码坏味道对类变更倾向和故障倾向的因果影响。结果表明,总体而言代码坏味道会显著增加类的变更倾向;但对故障倾向,除少数例外,未发现显著影响。该工作部分证实、部分挑战了既有结论,强调相关不等于因果,并为在其他软件属性和关系上采用队列研究设计奠定基础。

问题
既有研究多只揭示代码坏味道与类变更倾向、故障倾向之间的相关性,无法判断坏味道是否因果地导致这些结果。
方法
将流行病学中的队列研究设计实例化到软件仓库研究,复用 Khomh 等人的数据,对 11 类代码坏味道的因果效应进行分析。
评估
通过队列研究比较暴露与非暴露类,评估代码坏味道对类变更倾向与故障倾向的影响,并据此验证或挑战已有相关性结论。
原文摘要(Abstract)

Code smells are suboptimal design choices in source code that are conjectured to hinder software maintainability. Previous research has studied the impact of code smells on class change- and fault-proneness, yet, as in most mining studies, it has been limited to highlighting correlations rather than detecting causal relationships.This paper instantiates the cohort study design to software repository studies and presents a cohort study aimed at assessing whether code smells cause an increase or decrease in class change- and fault-proneness.By reusing data from the work of Khomh et al. [41] within a cohort study design, we investigate the causal effect of eleven types of code smells on class change- and fault-proneness.Our results show that, overall, the presence of code smells appears to be causing a significant increase in change-proneness, while, with few exceptions, fault-proneness appears unaffected. This work reinforces the principle that correlation does not imply causation: we partially confirmed some previous results on the effects of code smells, while challenging others. It also lays the groundwork for applying cohort study designs to other software properties and relationships previously studied using observational data.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11891,
  title = {Causal or Correlational? A Cohort Study on the Effects of Code Smells on Class Change- and Fault-Proneness},
  author = {Sabato Nocera and Sira Vegas and Giuseppe Scanniello and Massimiliano Di Penta and Natalia Juristo},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3744916.3787786}
}