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

实践中的提示:调查软件从业者使用生成式AI工具的方式

Prompting in Practice: Investigating Software Practitioners' Use of Generative AI Tools

William & Mary(威廉与玛丽学院)

Daniel Otten, Trevor Stalnaker, Nathan Wintersgill, Oscar Chaparro, Denys Poshyvanyk

AI总结:

研究调查软件从业者在实际开发中使用生成式AI工具的提示策略与实践,揭示其在代码生成、调试等任务中的应用现状及挑战。

摘要:

生成式AI(GenAI)工具的使用已从根本上改变了软件开发。这一转变的核心是提示工程,即通过构建文本提示来指导GenAI工具生成有用内容的实践。尽管提示工程已成为一项关键技能,但以往的研究主要集中在提示技术的目录化上,对软件从业者如何在真实世界开发流程中使用GenAI的关注有限。为填补这一空白,本研究系统地调查了从业者将GenAI工具整合到软件开发中的情况,基于一项严谨的调查,考察了提示策略、对话模式和可靠性评估在核心软件开发任务中的情况。我们对72名积极使用GenAI的软件从业者进行了调查,以表征AI使用模式在整个开发过程中的情况。通过结合对调查回答的定性和定量分析,我们确定了13项关键发现,描述了提示在实践中的使用情况。我们的研究表明,尽管代码生成几乎普遍存在,但熟练程度与使用GenAI进行更细致的任务如调试和代码审查之间存在强相关性。从业者也倾向于偏好迭代多轮对话以单次提示。文档任务被认为是最可靠的,而复杂代码生成和调试仍然是主要挑战。我们的发现提供了从业者实践的实证观点,从基本的代码生成到更深入的GenAI整合到开发流程中的情况,使我们能够为改进GenAI工具和从业者与之互动的方式提供建议。

英文摘要:

The use of generative AI (GenAI) tools has fundamentally transformed software development. Central to this shift is prompt engineering, the practice of crafting textual prompts to guide GenAI tools in generating useful content. Although prompt engineering has emerged as a critical skill, prior research has focused primarily on cataloging of prompting techniques, with limited attention to how software practitioners employ GenAI within real-world development workflows. To address this gap, this study presents a systematic investigation of practitioners' integration of GenAI tools into software development, drawing on a rigorous survey that examines prompting strategies, conversation patterns, and reliability assessments across core software development tasks. We surveyed 72 software practitioners who actively use GenAI to characterize AI usage patterns throughout the development process. By combining qualitative and quantitative analyses of the survey responses, we identified 13 key findings that describe how prompting is performed in practice. Our study shows that while code generation is nearly universal, proficiency strongly correlates with the use of GenAI for more nuanced tasks such as debugging and code review. Practitioners also tend to favor iterative multi-turn conversations to single-shot prompting. Documentation tasks are perceived as most reliable, while complex code generation and debugging remain major challenges. Our findings provide an empirical view of practitioner practices, ranging from basic code generation to deeper integration of GenAI into development workflows, enabling us to offer recommendations for improving both GenAI tools and the ways practitioners interact with them.

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

↑