O&O ConsultingBook a free call

Home / Insights / AI in Practice

AI Coding Assistants: What the Evidence Says

Code generation has improved quickly. Here is what studies show about speed, quality and security.

O&O Consulting · · 2 min read

A developer's screen with code

Writing code is among the areas where language models have been adopted fastest, partly because output can be tested.

Measuring ability

In 2021 OpenAI introduced HumanEval, a set of short programming problems scored by running tests. Performance on such benchmarks rose rapidly. Longer tasks that require understanding a large existing codebase are considerably harder than writing one function.

A safe way to work with a coding assistantIllustrative diagram, not data
Describe the change clearlyReview the suggested codeRun tests and security checksMerge only what you understandand the loop repeats
Describe the change clearlyReview the suggested codeRun tests and security checksMerge only what you understandand the loop repeats

Diagram by O&O Consulting.

Productivity

A 2023 controlled experiment asked developers to build a web server in JavaScript. Those with GitHub Copilot finished about 56 per cent faster than those without. The result is encouraging and also specific: one self-contained task, measured by speed. It does not establish the effect on maintaining a large system over months, where results across studies have been more mixed.

Quality and security

A study that prompted Copilot in security-relevant scenarios found that roughly 40 per cent of the generated programs contained vulnerabilities. Models learn from public code, which includes insecure patterns. Suggested libraries or functions may not exist, and attackers could publish packages under invented names.

Working practices

  • Keep automated tests, and write or check them yourself.
  • Run static analysis and dependency scanning.
  • Never paste secrets into a tool that stores prompts.
  • Require the author to be able to explain every change.
  • Check licence terms where output closely resembles existing code.

Limitations and open questions

Faster writing can move the bottleneck to review and increase the volume of code to maintain. Junior developers may gain speed while learning less if they accept suggestions uncritically. Measure outcomes such as defects and time to deliver working features, not lines produced.

References

  • Chen, M. et al. (2021). "Evaluating Large Language Models Trained on Code." arxiv.org/abs/2107.03374
  • Peng, S. et al. (2023). "The Impact of AI on Developer Productivity: Evidence from GitHub Copilot." arxiv.org/abs/2302.06590
  • Pearce, H. et al. (2021). "Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributions." arxiv.org/abs/2108.09293

This article is general information, not financial, legal or investment advice. AI research and rules change quickly; check the cited sources for the current position.