arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.23253cs.HC
收藏

Vibe coding:通过与人工智能对话进行编程

Vibe coding: programming through conversation with artificial intelligence

University of Cambridge(剑桥大学);Microsoft Research(微软研究院);University College London(伦敦大学学院)

Advait Sarkar, Ian Drosos

AI总结:

本研究首次通过实证分析探索vibe coding这一AI对话式编程新范式,揭示其迭代工作流与混合调试模式,指出编程 expertise 向上下文管理等方向转移,为理解AI辅助编程演进提供了新视角。

摘要:

我们研究了“vibe coding(氛围编码)”这一新兴编程范式,在该范式下开发者主要通过与代码生成大语言模型交互来编写代码,而非直接手写代码。我们开展了首个针对vibe coding的实证研究,分析了超过8小时的精选视频,这些视频记录了完整的vibe coding会话过程,包含丰富的出声思考反馈。我们采用框架分析法,研究了程序员的目标、工作流、提示技巧、调试方法以及遇到的挑战。我们发现,vibe coding遵循迭代式目标满足循环:开发者在提示AI、通过快速扫描和应用测试评估生成代码、手动编辑这三个环节之间交替进行。vibe coding中的提示融合了模糊的高层指令与详细的技术规范。调试仍是结合AI辅助与手动操作的混合过程。关键在于,vibe coding并未消除对编程专业知识的需求,而是将其重新分配到上下文管理、快速代码评估,以及决定何时在AI驱动的代码操作与手动代码操作之间切换的决策上。在vibe coding过程中,对AI工具的信任是动态且依赖情境的,它通过迭代验证逐步建立,而非全盘接受。vibe coding是AI辅助编程的一种演进,是“物质脱离”的早期表现形式——从业者通过AI介导来统筹代码的生成与操作,同时保持有选择性的战略性监督。

英文摘要:

We examine "vibe coding": an emerging programming paradigm where developers primarily write code by interacting with code-generating large language models rather than writing code directly. We present the first empirical study of vibe coding. We analysed over 8 hours of curated video capturing extended vibe coding sessions with rich think-aloud reflections. Using framework analysis, we investigated programmers' goals, workflows, prompting techniques, debugging approaches, and challenges encountered. We find that vibe coding follows iterative goal satisfaction cycles where developers alternate between prompting AI, evaluating generated code through rapid scanning and application testing, and manual editing. Prompts in vibe coding blend vague, high-level directives with detailed technical specifications. Debugging remains a hybrid process combining AI assistance with manual practices. Critically, vibe coding does not eliminate the need for programming expertise but rather redistributes it toward context management, rapid code evaluation, and decisions about when to transition between AI-driven and manual manipulation of code. Trust in AI tools during vibe coding is dynamic and contextual, developed through iterative verification rather than blanket acceptance. Vibe coding is an evolution of AI-assisted programming that represents an early manifestation of "material disengagement", wherein practitioners orchestrate code production and manipulation, mediated through AI, while maintaining selective and strategic oversight.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑