Interleaving Natural Language Prompting with Code Editing for Solving Programming Tasks with Generative AI Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Pădurean, Victor-Alexandru, Gotovos, Alkis, Ghosh, Ahana, Denny, Paul, Leinonen, Juho, Luxton-Reilly, Andrew, Prather, James, Singla, Adish
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908787696205824
author Pădurean, Victor-Alexandru
Gotovos, Alkis
Ghosh, Ahana
Denny, Paul
Leinonen, Juho
Luxton-Reilly, Andrew
Prather, James
Singla, Adish
author_facet Pădurean, Victor-Alexandru
Gotovos, Alkis
Ghosh, Ahana
Denny, Paul
Leinonen, Juho
Luxton-Reilly, Andrew
Prather, James
Singla, Adish
contents Modern computing students often rely on both natural-language prompting and manual code editing to solve programming tasks. Yet we still lack a clear understanding of how these two modes are combined in practice, and how their usage varies with task complexity and student ability. In this paper, we investigate this through a large-scale study in an introductory programming course, collecting 13,305 interactions from 355 students during a three-day lab activity. Our analysis shows that students primarily use prompting to generate initial solutions, and then often enter short edit-run loops to refine their code following a failed execution. Student reflections confirm that prompting is helpful for structuring solutions, editing is effective for making targeted corrections, while both are useful for learning. We find that manual editing becomes more frequent as task complexity increases, but most edits remain concise, with many affecting a single line of code. Higher-performing students tend to succeed using prompting alone, while lower-performing students rely more on edits. These findings highlight the role of manual editing as a deliberate last-mile repair strategy, complementing prompting in AI-assisted programming workflows.
format Preprint
id arxiv_https___arxiv_org_abs_2509_14088
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Interleaving Natural Language Prompting with Code Editing for Solving Programming Tasks with Generative AI Models
Pădurean, Victor-Alexandru
Gotovos, Alkis
Ghosh, Ahana
Denny, Paul
Leinonen, Juho
Luxton-Reilly, Andrew
Prather, James
Singla, Adish
Computers and Society
Modern computing students often rely on both natural-language prompting and manual code editing to solve programming tasks. Yet we still lack a clear understanding of how these two modes are combined in practice, and how their usage varies with task complexity and student ability. In this paper, we investigate this through a large-scale study in an introductory programming course, collecting 13,305 interactions from 355 students during a three-day lab activity. Our analysis shows that students primarily use prompting to generate initial solutions, and then often enter short edit-run loops to refine their code following a failed execution. Student reflections confirm that prompting is helpful for structuring solutions, editing is effective for making targeted corrections, while both are useful for learning. We find that manual editing becomes more frequent as task complexity increases, but most edits remain concise, with many affecting a single line of code. Higher-performing students tend to succeed using prompting alone, while lower-performing students rely more on edits. These findings highlight the role of manual editing as a deliberate last-mile repair strategy, complementing prompting in AI-assisted programming workflows.
title Interleaving Natural Language Prompting with Code Editing for Solving Programming Tasks with Generative AI Models
topic Computers and Society
url https://arxiv.org/abs/2509.14088