arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2005.11474cs.SEcs.HC
收藏

查找独特用法:帮助开发人员理解常见用法

Find Unique Usages: Helping Developers Understand Common Usages

Emad Aghayi, Aaron Massey, Thomas LaToza

摘要:

当在大型复杂的代码库中工作时,开发人员面临着使用\textit{Find Usages}理解如何重用类和方法的挑战。为了更好地了解这些挑战,我们进行了一项小型探索性研究,有4名参与者。我们发现开发人员经常浪费时间阅读类似用法的长列表,或者过早地专注于单一用法。基于这些发现,我们假设通过其周围上下文的相似性来聚类使用可能使开发人员能够更快地理解如何使用函数。为了探索这个想法,我们设计并实现了\textit{Find Unique Usages},它提取使用,计算使用对之间的差异,生成相似性分数,并使用这些分数来形成使用集群。为了评估这种方法,我们对12名参与者进行了对照实验。我们发现,使用Find Unique Usages的开发人员速度明显更快,完成任务的时间减少了35%。

英文摘要:

When working in large and complex codebases, developers face challenges using \textit{Find Usages} to understand how to reuse classes and methods. To better understand these challenges, we conducted a small exploratory study with 4 participants. We found that developers often wasted time reading long lists of similar usages or prematurely focused on a single usage. Based on these findings, we hypothesized that clustering usages by the similarity of their surrounding context might enable developers to more rapidly understand how to use a function. To explore this idea, we designed and implemented \textit{Find Unique Usages}, which extracts usages, computes a diff between pairs of usages, generates similarity scores, and uses these scores to form usage clusters. To evaluate this approach, we conducted a controlled experiment with 12 participants. We found that developers with Find Unique Usages were significantly faster, completing their task in 35% less time.

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

↑