跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 人工智能

arXiv:2408.00686 (cs)
[提交于 2024年8月1日]

标题:Can Developers Prompt? A Controlled Experiment for Code Documentation Generation

作者:Hans-Alexander Kruse, Tim Puhlfürß, Walid Maalej
查看论文《Can Developers Prompt? A Controlled Experiment for Code Documentation Generation》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Large language models (LLMs) bear great potential for automating tedious development tasks such as creating and maintaining code documentation. However, it is unclear to what extent developers can effectively prompt LLMs to create concise and useful documentation. We report on a controlled experiment with 20 professionals and 30 computer science students tasked with code documentation generation for two Python functions. The experimental group freely entered ad-hoc prompts in a ChatGPT-like extension of Visual Studio Code, while the control group executed a predefined few-shot prompt. Our results reveal that professionals and students were unaware of or unable to apply prompt engineering techniques. Especially students perceived the documentation produced from ad-hoc prompts as significantly less readable, less concise, and less helpful than documentation from prepared prompts. Some professionals produced higher quality documentation by just including the keyword Docstring in their ad-hoc prompts. While students desired more support in formulating prompts, professionals appreciated the flexibility of ad-hoc prompting. Participants in both groups rarely assessed the output as perfect. Instead, they understood the tools as support to iteratively refine the documentation. Further research is needed to understand which prompting skills and preferences developers have and which support they need for certain tasks.
评论: Accepted at the 40th IEEE International Conference on Software Maintenance and Evolution (ICSME)
主题: 人工智能 (cs.AI); 人机交互 (cs.HC); 软件工程 (cs.SE)
引用方式: arXiv:2408.00686 [cs.AI]
  (或者 arXiv:2408.00686v1 [cs.AI] 对于此版本)
  https://doi.org/10.48550/arXiv.2408.00686
相关 DOI: https://doi.org/10.1109/ICSME58944.2024.00058

提交历史

来自:Tim Puhlfürß
[v1] 2024年8月1日 星期四 16:28:14 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.AI
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-08
切换浏览方式为:
cs
cs.HC
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站