Identifying Code Smells with Multiple Concern Views

G. Carneiro, Marcos Silva, Leandra Mara, Eduardo Figueiredo, C. Sant'Anna, Alessandro F. Garcia, Manoel G. Mendonça
{"title":"Identifying Code Smells with Multiple Concern Views","authors":"G. Carneiro, Marcos Silva, Leandra Mara, Eduardo Figueiredo, C. Sant'Anna, Alessandro F. Garcia, Manoel G. Mendonça","doi":"10.1109/SBES.2010.21","DOIUrl":null,"url":null,"abstract":"Code smells are anomalies often caused by the way concerns are realized in the source code. Their identification might depend on properties governing the structure of individual concerns and their inter-dependencies in the system implementation. Although code visualization tools are increasingly applied to support anomaly detection, they are mostly limited to represent modular structures, such as methods, classes and packages. This paper presents a multiple views approach that enriches four categories of code views with concern properties, namely: (i) concern’s package-class method structure, (ii) concern’s inheritance-wise structure, (iii)concern dependency, and (iv) concern dependency weight. An exploratory study was conducted to assess the extent to which visual views support code smell detection. Developers identified a set of well-known code smells on five versions of an open source system. Two important results came out of this study. First, the concern-driven views provided useful support to identify God Class and Divergent Change smells. Second, strategies for smell detection supported by the multiple concern views were uncovered.","PeriodicalId":306692,"journal":{"name":"2010 Brazilian Symposium on Software Engineering","volume":"61 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-09-27","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"65","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2010 Brazilian Symposium on Software Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SBES.2010.21","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 65

Abstract

Code smells are anomalies often caused by the way concerns are realized in the source code. Their identification might depend on properties governing the structure of individual concerns and their inter-dependencies in the system implementation. Although code visualization tools are increasingly applied to support anomaly detection, they are mostly limited to represent modular structures, such as methods, classes and packages. This paper presents a multiple views approach that enriches four categories of code views with concern properties, namely: (i) concern’s package-class method structure, (ii) concern’s inheritance-wise structure, (iii)concern dependency, and (iv) concern dependency weight. An exploratory study was conducted to assess the extent to which visual views support code smell detection. Developers identified a set of well-known code smells on five versions of an open source system. Two important results came out of this study. First, the concern-driven views provided useful support to identify God Class and Divergent Change smells. Second, strategies for smell detection supported by the multiple concern views were uncovered.
用多个关注视图识别代码气味
代码气味通常是由在源代码中实现关注点的方式引起的异常。它们的识别可能依赖于控制单个关注点结构的属性以及它们在系统实现中的相互依赖关系。尽管代码可视化工具越来越多地应用于支持异常检测,但它们大多局限于表示模块化结构,例如方法、类和包。本文提出了一种多视图方法,通过关注属性丰富了四类代码视图,即:(i)关注的包类方法结构,(ii)关注的继承结构,(iii)关注依赖关系,以及(iv)关注依赖关系权重。进行了一项探索性研究,以评估视觉视图支持代码气味检测的程度。开发人员在五个版本的开源系统中识别出一组众所周知的代码气味。这项研究得出了两个重要的结果。首先,关注驱动的观点为识别“上帝类”和“发散性变化气味”提供了有用的支持。其次,揭示了多重关注视图支持的气味检测策略。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:481959085
Book学术官方微信