Thursday 23 January 2025
As AI-powered coding tools continue to gain popularity, developers are increasingly relying on them to generate code. But how readable is this generated code? A recent study set out to answer this question by surveying 118 practitioners and conducting an empirical analysis of AI-generated code.
The results showed that while practitioners acknowledge the importance of code readability, they also face challenges in prioritizing it due to time constraints, focus on functionality, and resistance from team members. Moreover, the study found that the state of practice for code readability is fragmented, with no single standard or best practice widely adopted.
In terms of AI-generated code, the study found that it can be comparable in readability to human-written code. This is promising news for developers who want to integrate AI-powered tools into their workflow without sacrificing code quality.
But what exactly makes code readable? The study used a range of metrics, including line count, comment ratio, and cyclomatic complexity, to assess the readability of both human-written and AI-generated code. While there were some minor differences between the two, the results suggest that AI-generated code can be just as readable as its human-written counterpart.
The implications of this research are significant. As AI-powered coding tools become more widespread, developers will need to ensure that they prioritize code readability in their workflows. This means adopting best practices for writing clear and concise code, using commenting and documentation effectively, and leveraging AI-powered tools to streamline the development process.
Moreover, the study highlights the importance of developing standards and best practices for code readability. Without a shared understanding of what makes code readable, developers may struggle to communicate effectively with each other and maintain complex software systems over time.
Ultimately, this research suggests that AI-generated code can be just as readable as human-written code, but only if developers prioritize code quality and adopt best practices for writing clear and concise code. As the use of AI-powered coding tools continues to grow, it will be essential for developers to stay up-to-date with the latest research and best practices to ensure that their code is both readable and maintainable.
Cite this article: “Code Readability in the Age of AI-Generated Code”, The Science Archive, 2025.
Ai-Generated Code, Readability, Code Quality, Developers, Coding Tools, Human-Written Code, Line Count, Comment Ratio, Cyclomatic Complexity, Best Practices, Maintainable Code.







