A New Metric for Code Readability
Rajendar Namani · IOSR Journal of Computer Engineering · 2012
Code readability is very important in software development process.It has relationship with software quality.In this paper we define a new readability metric that can be used to measure the readability of given source code.From senior software engineers we collected some rules and then deduced them into a metric which can be used to measure the readability of code.Moreover we implemented some of the existing readability metrics such as Automated Readability Index (ARI), Gunning's Fox Index (FOG) and SMOG programmatically.The results of these metrics are compared with the each other.We have developed a prototype application that takes source code as input and applies metric.The metric generates readability statistics.The input code is given to 50 software engineers and asked them to provide the percentage of readability of code.The percentage given by them is compared with the proposed application generated statistics.The results revealed that both are closely matching and the proposed metric can be used in the real world applications.
Cited by 6 works. doi:10.9790/0661-0664448 Open-access PDF
Authors
References
- A Discipline of Programming
- Top 10 list [software development]
- Automated readability index.
- Learning a Metric for Code Readability
- Software Defect Reduction Top-10 List
- An integrated measure of software maintainability
- Improving computer program readability to aid modification
- Phased inspections and their implementation
- The use of domain knowledge in program understanding
- The uses of program reading