Europe 2026
Can LLMs generate Enterprise Quality Code? — Prasenjit Sarkar, Sonar
Overview
This talk addresses the quality of code generated by Large Language Models (LLMs) for enterprise use. While LLMs show high functional correctness on standard benchmarks, they often produce code that is verbose, complex, insecure, and difficult to maintain. The presentation introduces an evaluation framework and a proposed agent-centric development cycle to address these shortcomings and ensure LLM-generated code meets engineering standards.
Who should watch
- AI Engineers
- Product Managers
- Developers building with AI agents
- Anyone evaluating LLM code generation capabilities
- Teams concerned about code quality, security, and maintainability
Key takeaways
- Many developers are adopting AI agents for coding, with over 55% regularly using them.
- Standard LLM benchmarks often focus on functional correctness, neglecting critical aspects like security, maintainability, and architectural soundness.
- An evaluation of several LLMs on 4,444+ Java assignments revealed significant issues:
- * Models can generate excessively verbose code, with some producing over a million lines for a set of assignments.
- * High cyclomatic and cognitive complexity were observed, indicating difficult-to-read and maintain code.
- * Security vulnerabilities and bugs per million lines of code remain a concern across various models.
- The mixed quality of open-source training data, built-in security flaws, and the probabilistic nature of LLMs contribute to these code quality issues.
- Sonar has developed an evaluation framework and leaderboard to assess LLM code generation performance across multiple metrics, including correctness, verbosity, complexity, and security.
Notable quotes
*English is now the new programming language.*
*The question is do you trust the code that is being generated by these LLMs?*
*What we are missing is the security aspects, the real world reliability aspect, the engineering architectural problems.*
Unofficial community note. Prefer the recording for nuance.