The Growing Importance of Code Quality Instruction in the AI Era
Abstract
The rapid advancement of large language models (LLMs) for code generation is transforming software development and necessitating a rethinking of how programming should be taught. Although AI can often produce syntactically and functionally correct code, such code is not necessarily of high quality; humans must still evaluate it for qualities such as readability, maintainability, modularity, and design. Yet introductory computing curricula often emphasize functional correctness, while code quality topics such as decomposition, modularity, and design, are postponed until upper-level software development courses. As a result, students may have little opportunity to develop the habits and vocabulary needed to assess code structure and make informed design choices. This gap is increasingly consequential as students rely on AI tools that can produce working code without making their design tradeoffs visible. We argue that introductory programming courses should teach code quality alongside functional correctness, particularly in the age of AI. From the beginning of the curriculum, students should learn why code quality matters, how to evaluate both human- and AI-generated code, and how to write programs that are not only correct but also readable, maintainable, and well designed.