Concepedia

Publication | Closed Access

Investigates the Impact of AI-generated Code Tools on Software Readability Code Quality Factor

34

Citations

7

References

2024

Year

Abstract

Artificial Intelligence (AI) has made great strides in various industries, including software development, with tools such as ChatGPT changing the way code is written, maintained and developed. This study investigates the impact of AI-generated code on software quality, focusing on readability, code clarity, complexity, and documentation. Comparing AI-generated code with open-source code from GitHub for three tasks of varying difficulty (easy, medium, and hard), we evaluated key metrics such as cyclomatic complexity (CC), code lines, comment density, code-to-code ratio, and variable names. The results revealed that although both AI-generated and human-generated code can be concise and efficient, code generated by AI tools shows a greater focus on documentation more clearly. AI-generated code especially in complex tasks showed improved readability due to higher comment density and the use of clear variable names. These results show that AI tools such as ChatGPT can enhance code quality, especially in the software industry where readability and comprehensibility are critical.

References

YearCitations

Page 1