ArXiv TLDR

ChatGPT: Friend or Foe When Comprehending and Changing Unfamiliar Code

🐦 Tweet
2605.10702

Norman Anderson, Tarek Alakmeh, Victoria Jackson, Guilherme Vaz Pereira, Umit Akirmak + 5 more

cs.SE

TLDR

This study examines AI's impact on developers' cognitive processes when comprehending and changing unfamiliar code, revealing mixed effects on problem-solving.

Key contributions

  • Explored AI's impact on developers' cognitive processes when comprehending and modifying unfamiliar code.
  • Used Polya's problem-solving phases and 25 behaviors to analyze 10 student developers.
  • Found AI users offloaded tasks, but all problem-solving behaviors appeared in both groups.
  • Identified 7 causes for developers getting stuck, with AI both helping and hindering progress.

Why it matters

This paper is crucial for understanding the nuanced cognitive impact of AI tools on developers, moving beyond simple productivity metrics. It reveals AI's mixed effects on problem-solving and overcoming roadblocks, guiding better AI tool design and usage.

Original Abstract

A rapidly growing body of research is examining how LLMs influence developers when they code. To date, this research has tended to focus on productivity and code quality outcomes, rather than the underlying cognitive processes involved in programming. To address this gap, we report on the results of an exploratory laboratory study of ten advanced student developers (five with support from AI and five without) who had to make a non-trivial extension to a sizable software system. Leveraging Polya's four problem-solving phases and 25 inductively-generated codes detailing distinct problem-solving behaviors as the primary lenses, we examined: (1) how AI impacted the problem-solving approach the developers used to solve the programming task, and (2) how AI impacted their progress when they became stuck. For the analysis, we triangulated data across multiple sources (e.g., think-aloud, code changes, web searches, and LLM prompts). Unexpectedly, while developers in the AI group repeatedly turned to the AI tool to offload certain aspects of the process, all detailed problem-solving behaviors appeared in both groups. We also found that nine out of ten participants found themselves stuck in their work, but with key differences in how they became stuck and unstuck. We highlight seven distinct causes for being stuck and highlight how AI in some cases helped and in other cases hindered becoming unstuck.

📬 Weekly AI Paper Digest

Get the top 10 AI/ML arXiv papers from the week — summarized, scored, and delivered to your inbox every Monday.