Recommendation of move method refactorings using coupling, cohesion and contextual similarity

Md. Masudur Rahman, Rashed Rubby Riyadh, Md. Rayhanur Rahman
{"title":"Recommendation of move method refactorings using coupling, cohesion and contextual similarity","authors":"Md. Masudur Rahman, Rashed Rubby Riyadh, Md. Rayhanur Rahman","doi":"10.1109/ICIVPR.2017.7890876","DOIUrl":null,"url":null,"abstract":"Method placement is one of the most important design activities in any object oriented application. Recommendation of move method refactorings plays a significant role through grouping similar behavior of methods. It is also used as a refactoring technique of feature envy code smell by placing methods into correct classes from the incorrect ones. Due to this code smell, an application will be tightly coupled and loosely cohesive which reflect poor design and hence development and maintenance effort, time and cost will be increased. Existing techniques mostly used only non-static methods for refactoring the code smell and so these approaches are not generalized for all types of methods (static and non-static). This paper proposes a novel approach for recommending move method refactorings to remove the code smell for both types of methods based on coupling, cohesion and context. The results of a preliminary empirical evaluation indicate that the proposed approach provides better results than JDeodorant (a popular eclipse plugin for refactorings).","PeriodicalId":126745,"journal":{"name":"2017 IEEE International Conference on Imaging, Vision & Pattern Recognition (icIVPR)","volume":"30 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2017 IEEE International Conference on Imaging, Vision & Pattern Recognition (icIVPR)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICIVPR.2017.7890876","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

Method placement is one of the most important design activities in any object oriented application. Recommendation of move method refactorings plays a significant role through grouping similar behavior of methods. It is also used as a refactoring technique of feature envy code smell by placing methods into correct classes from the incorrect ones. Due to this code smell, an application will be tightly coupled and loosely cohesive which reflect poor design and hence development and maintenance effort, time and cost will be increased. Existing techniques mostly used only non-static methods for refactoring the code smell and so these approaches are not generalized for all types of methods (static and non-static). This paper proposes a novel approach for recommending move method refactorings to remove the code smell for both types of methods based on coupling, cohesion and context. The results of a preliminary empirical evaluation indicate that the proposed approach provides better results than JDeodorant (a popular eclipse plugin for refactorings).
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
推荐使用耦合、内聚和上下文相似来重构move方法
方法放置是任何面向对象应用程序中最重要的设计活动之一。通过对相似行为的方法进行分组,推荐移动方法重构起着重要的作用。它还被用作一种重构技术,通过将不正确的方法放入正确的类中,从而消除特征羡慕代码的味道。由于这种代码气味,应用程序将是紧密耦合和松散内聚的,这反映了糟糕的设计,因此开发和维护工作,时间和成本将增加。现有的技术大多只使用非静态方法来重构代码气味,因此这些方法并不适用于所有类型的方法(静态和非静态)。本文提出了一种基于耦合、内聚和上下文的建议移动方法重构的新方法,以消除两种类型方法的代码气味。初步的经验评估结果表明,所提出的方法提供了比JDeodorant(一个流行的用于重构的eclipse插件)更好的结果。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Smart material interfaces: Playful and artistic applications Detection of Interstitial Lung Disease using correlation and regression methods on texture measure Single cell mass measurement from deformation of nanofork Handwritten Arabic numeral recognition using deep learning neural networks Chord Angle Deviation using Tangent (CADT), an efficient and robust contour-based corner detector
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1