SmellDSL:一种特定于领域的语言,帮助开发人员指定代码气味模式

IF 4.3 2区 计算机科学 Q2 COMPUTER SCIENCE, INFORMATION SYSTEMS
Robson Keemps , Kleinner Farias , Rafael Kunst , Carlos Carbonera , Willian Bolzan
{"title":"SmellDSL:一种特定于领域的语言,帮助开发人员指定代码气味模式","authors":"Robson Keemps ,&nbsp;Kleinner Farias ,&nbsp;Rafael Kunst ,&nbsp;Carlos Carbonera ,&nbsp;Willian Bolzan","doi":"10.1016/j.infsof.2025.107760","DOIUrl":null,"url":null,"abstract":"<div><h3>Context:</h3><div>The current literature has widely investigated <em>code smell patterns</em> over the years, which describe specific source code characteristics that indicate potential problems or areas for improvements. Empirical studies suggest that (i) metric-based strategies for code smell detection are not effective and overload the developers with false positives; (ii) code smell specifications are informal, ambiguous, and not supported by traditional IDEs like Eclipse platform; and (iii) the identification of code smells depends on the perception of software development teams.</div></div><div><h3>Objective:</h3><div>This article, therefore, proposes SmellDSL, a tool-supported domain-specific language to assist developers when specifying code smell patterns. SmellDSL benefits developers by introducing Eclipse built-in constructs that enable the specification of team-sensitive code smell patterns. Developers can write rules to specify single or composite architectural problems (<em>e.g., Misplaced Concerns</em>) and suggest code refactorings regarding severe architectural degradation symptoms.</div></div><div><h3>Method:</h3><div>We conducted an empirical study with 35 developers who specified eight code smells using SmellDSL, generating 280 evaluation scenarios.</div></div><div><h3>Results:</h3><div>The main results, supported by statistical tests, suggest that SmellDSL requires low effort to specify code smell patterns and promotes a high rate of correctly code smell specifications.</div></div><div><h3>Conclusion:</h3><div>We contribute with a domain-specific language for the specification of code smell patterns, empirical evidence on its usefulness, and draw worth-investigating research challenges by the research community.</div></div>","PeriodicalId":54983,"journal":{"name":"Information and Software Technology","volume":"184 ","pages":"Article 107760"},"PeriodicalIF":4.3000,"publicationDate":"2025-05-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"SmellDSL: A domain-specific language to assist developers in specifying code smell patterns\",\"authors\":\"Robson Keemps ,&nbsp;Kleinner Farias ,&nbsp;Rafael Kunst ,&nbsp;Carlos Carbonera ,&nbsp;Willian Bolzan\",\"doi\":\"10.1016/j.infsof.2025.107760\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><h3>Context:</h3><div>The current literature has widely investigated <em>code smell patterns</em> over the years, which describe specific source code characteristics that indicate potential problems or areas for improvements. Empirical studies suggest that (i) metric-based strategies for code smell detection are not effective and overload the developers with false positives; (ii) code smell specifications are informal, ambiguous, and not supported by traditional IDEs like Eclipse platform; and (iii) the identification of code smells depends on the perception of software development teams.</div></div><div><h3>Objective:</h3><div>This article, therefore, proposes SmellDSL, a tool-supported domain-specific language to assist developers when specifying code smell patterns. SmellDSL benefits developers by introducing Eclipse built-in constructs that enable the specification of team-sensitive code smell patterns. Developers can write rules to specify single or composite architectural problems (<em>e.g., Misplaced Concerns</em>) and suggest code refactorings regarding severe architectural degradation symptoms.</div></div><div><h3>Method:</h3><div>We conducted an empirical study with 35 developers who specified eight code smells using SmellDSL, generating 280 evaluation scenarios.</div></div><div><h3>Results:</h3><div>The main results, supported by statistical tests, suggest that SmellDSL requires low effort to specify code smell patterns and promotes a high rate of correctly code smell specifications.</div></div><div><h3>Conclusion:</h3><div>We contribute with a domain-specific language for the specification of code smell patterns, empirical evidence on its usefulness, and draw worth-investigating research challenges by the research community.</div></div>\",\"PeriodicalId\":54983,\"journal\":{\"name\":\"Information and Software Technology\",\"volume\":\"184 \",\"pages\":\"Article 107760\"},\"PeriodicalIF\":4.3000,\"publicationDate\":\"2025-05-03\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Information and Software Technology\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0950584925000990\",\"RegionNum\":2,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"COMPUTER SCIENCE, INFORMATION SYSTEMS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Information and Software Technology","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0950584925000990","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0

摘要

上下文:多年来,当前的文献广泛地研究了代码气味模式,它描述了指示潜在问题或需要改进的领域的特定源代码特征。实证研究表明(i)基于度量的代码气味检测策略并不有效,并且会使开发人员产生过多的误报;(ii)代码气味规范是非正式的、模棱两可的,并且不受Eclipse平台等传统ide的支持;(iii)代码气味的识别取决于软件开发团队的感知。目的:因此,本文提出了SmellDSL,这是一种工具支持的特定于领域的语言,可以帮助开发人员指定代码气味模式。SmellDSL通过引入支持团队敏感代码气味模式规范的Eclipse内置构造使开发人员受益。开发人员可以编写规则来指定单个或组合的体系结构问题(例如,错位的关注点),并针对严重的体系结构退化症状提出代码重构建议。方法:我们对35名开发人员进行了实证研究,他们使用SmellDSL指定了8种代码气味,生成了280个评估场景。结果:统计测试支持的主要结果表明,SmellDSL只需要很少的工作来指定代码气味模式,并提高了代码气味规范的正确率。结论:我们贡献了一种特定于领域的语言,用于规范代码气味模式,其有效性的经验证据,并吸引了研究社区值得调查的研究挑战。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
SmellDSL: A domain-specific language to assist developers in specifying code smell patterns

Context:

The current literature has widely investigated code smell patterns over the years, which describe specific source code characteristics that indicate potential problems or areas for improvements. Empirical studies suggest that (i) metric-based strategies for code smell detection are not effective and overload the developers with false positives; (ii) code smell specifications are informal, ambiguous, and not supported by traditional IDEs like Eclipse platform; and (iii) the identification of code smells depends on the perception of software development teams.

Objective:

This article, therefore, proposes SmellDSL, a tool-supported domain-specific language to assist developers when specifying code smell patterns. SmellDSL benefits developers by introducing Eclipse built-in constructs that enable the specification of team-sensitive code smell patterns. Developers can write rules to specify single or composite architectural problems (e.g., Misplaced Concerns) and suggest code refactorings regarding severe architectural degradation symptoms.

Method:

We conducted an empirical study with 35 developers who specified eight code smells using SmellDSL, generating 280 evaluation scenarios.

Results:

The main results, supported by statistical tests, suggest that SmellDSL requires low effort to specify code smell patterns and promotes a high rate of correctly code smell specifications.

Conclusion:

We contribute with a domain-specific language for the specification of code smell patterns, empirical evidence on its usefulness, and draw worth-investigating research challenges by the research community.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Information and Software Technology
Information and Software Technology 工程技术-计算机:软件工程
CiteScore
9.10
自引率
7.70%
发文量
164
审稿时长
9.6 weeks
期刊介绍: Information and Software Technology is the international archival journal focusing on research and experience that contributes to the improvement of software development practices. The journal''s scope includes methods and techniques to better engineer software and manage its development. Articles submitted for review should have a clear component of software engineering or address ways to improve the engineering and management of software development. Areas covered by the journal include: • Software management, quality and metrics, • Software processes, • Software architecture, modelling, specification, design and programming • Functional and non-functional software requirements • Software testing and verification & validation • Empirical studies of all aspects of engineering and managing software development Short Communications is a new section dedicated to short papers addressing new ideas, controversial opinions, "Negative" results and much more. Read the Guide for authors for more information. The journal encourages and welcomes submissions of systematic literature studies (reviews and maps) within the scope of the journal. Information and Software Technology is the premiere outlet for systematic literature studies in software engineering.
×
引用
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学术官方微信