Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
102 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Exploring Prompt Patterns in AI-Assisted Code Generation: Towards Faster and More Effective Developer-AI Collaboration (2506.01604v1)

Published 2 Jun 2025 in cs.SE

Abstract: The growing integration of AI tools in software development, particularly LLMs such as ChatGPT, has revolutionized how developers approach coding tasks. However, achieving high-quality code often requires iterative interactions, which can be time-consuming and inefficient. This paper explores the application of structured prompt patterns to minimize the number of interactions required for satisfactory AI-assisted code generation. Using the DevGPT dataset, we analyzed seven distinct prompt patterns to evaluate their effectiveness in reducing back-and-forth communication between developers and AI. Our findings highlight patterns such as ''Context and Instruction'' and ''Recipe'' as particularly effective in achieving high-quality outputs with minimal iterations. The study emphasizes the potential for prompt engineering to streamline developer-AI collaboration, providing practical insights into crafting prompts that balance precision, efficiency, and clarity.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Sophia DiCuffa (1 paper)
  2. Amanda Zambrana (1 paper)
  3. Priyanshi Yadav (1 paper)
  4. Sashidhar Madiraju (1 paper)
  5. Khushi Suman (1 paper)
  6. Eman Abdullah AlOmar (32 papers)
X Twitter Logo Streamline Icon: https://streamlinehq.com