使用可读性驱动的度量来度量程序的可理解性的工具

IF 1.2 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING
Md. Masudur Rahman, Zenun Chowdhury, Raqeebir Rab
{"title":"使用可读性驱动的度量来度量程序的可理解性的工具","authors":"Md. Masudur Rahman,&nbsp;Zenun Chowdhury,&nbsp;Raqeebir Rab","doi":"10.1016/j.simpa.2025.100782","DOIUrl":null,"url":null,"abstract":"<div><div>Program comprehensibility plays a significant role in software maintenance by enhancing code readability. Although inherently subjective, various methods to assess comprehensibility have emerged in recent years. Most of these approaches focus on structural characteristics of source code, such as lines of code, number of identifiers, cyclomatic complexity, etc. However, textual elements are equally vital, as these directly influence how humans interpret and understand code. In this paper, we present an approach that evaluates program comprehensibility based on the textual readability of source code — reflecting how it is perceived by human readers. We developed a tool to implement this proposed approach and validated its effectiveness by comparing its output with manual evaluations of code comprehensibility. The results showed complete agreement, indicating that the tool produces comprehensibility scores. This tool can support developers by identifying segments of code that are harder to comprehend, enabling targeted refactoring efforts to improve overall readability.</div></div>","PeriodicalId":29771,"journal":{"name":"Software Impacts","volume":"25 ","pages":"Article 100782"},"PeriodicalIF":1.2000,"publicationDate":"2025-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A tool for measuring program comprehensibility using readability-driven metrics\",\"authors\":\"Md. Masudur Rahman,&nbsp;Zenun Chowdhury,&nbsp;Raqeebir Rab\",\"doi\":\"10.1016/j.simpa.2025.100782\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Program comprehensibility plays a significant role in software maintenance by enhancing code readability. Although inherently subjective, various methods to assess comprehensibility have emerged in recent years. Most of these approaches focus on structural characteristics of source code, such as lines of code, number of identifiers, cyclomatic complexity, etc. However, textual elements are equally vital, as these directly influence how humans interpret and understand code. In this paper, we present an approach that evaluates program comprehensibility based on the textual readability of source code — reflecting how it is perceived by human readers. We developed a tool to implement this proposed approach and validated its effectiveness by comparing its output with manual evaluations of code comprehensibility. The results showed complete agreement, indicating that the tool produces comprehensibility scores. This tool can support developers by identifying segments of code that are harder to comprehend, enabling targeted refactoring efforts to improve overall readability.</div></div>\",\"PeriodicalId\":29771,\"journal\":{\"name\":\"Software Impacts\",\"volume\":\"25 \",\"pages\":\"Article 100782\"},\"PeriodicalIF\":1.2000,\"publicationDate\":\"2025-07-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Software Impacts\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S2665963825000429\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"COMPUTER SCIENCE, SOFTWARE ENGINEERING\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Software Impacts","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2665963825000429","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0

摘要

程序可理解性通过提高代码的可读性,在软件维护中起着重要的作用。虽然固有的主观性,但近年来出现了各种评估可理解性的方法。这些方法大多关注源代码的结构特征,如代码行数、标识符的数量、圈复杂度等。然而,文本元素同样至关重要,因为它们直接影响人类如何解释和理解代码。在本文中,我们提出了一种基于源代码的文本可读性来评估程序可理解性的方法-反映了人类读者如何感知它。我们开发了一个工具来实现这个建议的方法,并通过比较它的输出和代码可理解性的手动评估来验证它的有效性。结果显示完全一致,表明该工具产生可理解性分数。该工具可以通过识别难以理解的代码片段来支持开发人员,从而使有针对性的重构工作能够提高整体可读性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
A tool for measuring program comprehensibility using readability-driven metrics
Program comprehensibility plays a significant role in software maintenance by enhancing code readability. Although inherently subjective, various methods to assess comprehensibility have emerged in recent years. Most of these approaches focus on structural characteristics of source code, such as lines of code, number of identifiers, cyclomatic complexity, etc. However, textual elements are equally vital, as these directly influence how humans interpret and understand code. In this paper, we present an approach that evaluates program comprehensibility based on the textual readability of source code — reflecting how it is perceived by human readers. We developed a tool to implement this proposed approach and validated its effectiveness by comparing its output with manual evaluations of code comprehensibility. The results showed complete agreement, indicating that the tool produces comprehensibility scores. This tool can support developers by identifying segments of code that are harder to comprehend, enabling targeted refactoring efforts to improve overall readability.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Software Impacts
Software Impacts Software
CiteScore
2.70
自引率
9.50%
发文量
0
审稿时长
16 days
×
引用
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学术官方微信