Skip to main content
QUICK REVIEW

[Paper Review] "It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmers

James Prather, Brent N. Reeves|arXiv (Cornell University)|Apr 5, 2023
Software Engineering ResearchComputer Science21 citations
TL;DR

The study observes CS1 students using GitHub Copilot for the first time, revealing new interaction patterns (shepherding and drifting), cognitive/metacognitive challenges, and user perceptions that inform design guidelines for novice programming with AI code generators.

ABSTRACT

Recent developments in deep learning have resulted in code-generation models that produce source code from natural language and code-based prompts with high accuracy. This is likely to have profound effects in the classroom, where novices learning to code can now use free tools to automatically suggest solutions to programming exercises and assignments. However, little is currently known about how novices interact with these tools in practice. We present the first study that observes students at the introductory level using one such code auto-generating tool, Github Copilot, on a typical introductory programming (CS1) assignment. Through observations and interviews we explore student perceptions of the benefits and pitfalls of this technology for learning, present new observed interaction patterns, and discuss cognitive and metacognitive difficulties faced by students. We consider design implications of these findings, specifically in terms of how tools like Copilot can better support and scaffold the novice programming experience.

Motivation & Objective

  • Motivate how novices use AI code generators in a real CS1 task and understand learning implications.
  • Examine novices' perceptions of Copilot's benefits and pitfalls for learning.
  • Identify interaction patterns and cognitive/metacognitive challenges during first-time use.
  • Inform design implications and scaffolding strategies for novice programmers using AI tools.

Proposed method

  • Observational study of 19 novice CS1 students solving a Minesweeper-like assignment in VS Code with Copilot enabled.
  • Think-aloud protocol during 30-minute sessions supplemented by post-task interviews.
  • Qualitative analysis using reflexive thematic analysis (Braun & Clarke) across observations and interviews.
  • Participants had no prior Copilot experience and received brief training before the session.
  • Data were anonymized and analyzed through iterative coding and theme development across six analytic phases.
(a) A programmer has entered code up to the cursor (red arrow) at the beginning of line 10 with minimal help from Copilot before this point. The gray italicized code is a Copilot suggestion.
(a) A programmer has entered code up to the cursor (red arrow) at the beginning of line 10 with minimal help from Copilot before this point. The gray italicized code is a Copilot suggestion.

Experimental results

Research questions

  • RQ1RQ1: How do novices interact with GitHub Copilot when they first encounter it?
  • RQ2RQ2: How do novices perceive their first-time experience of using GitHub Copilot?

Key findings

  • Copilot is perceived to speed code writing but raises concerns about understanding generated code and potential over-reliance.
  • Two novel interaction patterns emerge: shepherding (slow accepts, adaptations, and guiding Copilot toward a solution) and drifting (moving from suggestion to suggestion with little direction).
  • Participants frequently exhibited cognitive and metacognitive difficulties, including confusion, distraction from large code blocks, and reliance on Copilot that impeded problem solving.
  • Novices sometimes used Copilot to guide their thinking (rubber-ducking analogue) and to discover paths forward, while others experienced “debugging rabbitholes” from drifting through incorrect suggestions.
  • Interplay of positive and negative emotions; some participants felt surprise at Copilot’s capabilities, while others felt frustrated by intrusive or incorrect suggestions.
  • The study discusses design implications and guidelines to better support novice programmers using AI code generators.
(b) The programmer has accepted the suggestion in (a) by pressing tab, advancing the cursor to the end of line 10 (red arrow), just after the code that was suggested. The gray italicized code is the next Copilot suggestion.
(b) The programmer has accepted the suggestion in (a) by pressing tab, advancing the cursor to the end of line 10 (red arrow), just after the code that was suggested. The gray italicized code is the next Copilot suggestion.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.