Grounded Copilot: How Programmers Interact with Code-Generating Models

Shraddha Barke, Michael B. James, Nadia Polikarpova

Proceedings of the ACM on Programming Languages · 2023 · 339 citations · 34 references

DOIFull text

Open access

Concepts

TL;DR

Powered by recent advances in code‑generating models, AI assistants like GitHub Copilot promise to change the face of programming forever. The study presents the first grounded theory analysis of how programmers interact with Copilot. It observes 20 participants with varied experience solving diverse programming tasks across four languages. The study finds that interactions are bimodal—acceleration mode for known tasks and exploration mode for uncertain tasks—and offers recommendations to improve future AI programming assistants. The study questions what the new face of programming entails.

Abstract

Powered by recent advances in code-generating models, AI assistants like Github Copilot promise to change the face of programming forever. But what is this new face of programming? We present the first grounded theory analysis of how programmers interact with Copilot, based on observing 20 participants—with a range of prior experience using the assistant—as they solve diverse programming tasks across four languages. Our main finding is that interactions with programming assistants are bimodal : in acceleration mode , the programmer knows what to do next and uses Copilot to get there faster; in exploration mode , the programmer is unsure how to proceed and uses Copilot to explore their options. Based on our theory, we provide recommendations for improving the usability of future AI programming assistants.

References

34