Empirical Assessment on Interactive Detection of Code Smells

D. Albuquerque, Everton T. Guimarães, Alexandre Braga Gomes, M. Perkusich, H. Almeida, A. Perkusich
{"title":"Empirical Assessment on Interactive Detection of Code Smells","authors":"D. Albuquerque, Everton T. Guimarães, Alexandre Braga Gomes, M. Perkusich, H. Almeida, A. Perkusich","doi":"10.23919/softcom55329.2022.9911317","DOIUrl":null,"url":null,"abstract":"Code smell detection is traditionally supported by Non-Interactive Detection (NID) techniques, which enable devel-opers to reveal smells in later software versions. These techniques only reveal smells in the source code upon an explicit developer request and do not support progressive interaction with affect code. The later code smells are detected, the higher the effort to refactor the affected code. The notion of Interactive Detection (ID) has emerged to address NID's limitations. An ID technique reveals code smell instances without an explicit developer request, encouraging early detection of code smells. Even though ID seems promising, there is a lack of evidence concerning its impact on code smell detection. Our research focused on evaluating the effectiveness of the ID technique on code smell detection. For doing so, we conducted a controlled experiment where 16 subjects underwent experimental tasks. We concluded that using the ID technique led to an increase of 60% in recall and up to 13% in precision when detecting code smells. Consequently, developers could identify more refactoring opportunities using the ID technique than the NID.","PeriodicalId":261625,"journal":{"name":"2022 International Conference on Software, Telecommunications and Computer Networks (SoftCOM)","volume":"1004 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-09-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Conference on Software, Telecommunications and Computer Networks (SoftCOM)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.23919/softcom55329.2022.9911317","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

Code smell detection is traditionally supported by Non-Interactive Detection (NID) techniques, which enable devel-opers to reveal smells in later software versions. These techniques only reveal smells in the source code upon an explicit developer request and do not support progressive interaction with affect code. The later code smells are detected, the higher the effort to refactor the affected code. The notion of Interactive Detection (ID) has emerged to address NID's limitations. An ID technique reveals code smell instances without an explicit developer request, encouraging early detection of code smells. Even though ID seems promising, there is a lack of evidence concerning its impact on code smell detection. Our research focused on evaluating the effectiveness of the ID technique on code smell detection. For doing so, we conducted a controlled experiment where 16 subjects underwent experimental tasks. We concluded that using the ID technique led to an increase of 60% in recall and up to 13% in precision when detecting code smells. Consequently, developers could identify more refactoring opportunities using the ID technique than the NID.
代码气味交互检测的实证评估
代码气味检测传统上是由非交互式检测(NID)技术支持的,它使开发人员能够在以后的软件版本中显示气味。这些技术仅在明确的开发人员请求时显示源代码中的气味,不支持与影响代码的渐进式交互。检测到的代码气味越晚,重构受影响代码的工作量就越大。交互式检测(Interactive Detection, ID)的概念已经出现,以解决NID的局限性。ID技术可以在没有显式开发人员请求的情况下显示代码气味实例,从而鼓励及早发现代码气味。尽管ID看起来很有希望,但缺乏关于它对代码气味检测的影响的证据。我们的研究重点是评估ID技术在代码气味检测中的有效性。为此,我们进行了一个对照实验,其中16名受试者接受了实验任务。我们得出的结论是,使用ID技术在检测代码气味时,召回率提高了60%,准确率提高了13%。因此,使用ID技术,开发人员可以识别出比NID更多的重构机会。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信