DOI: https://doi.org/10.1145/3729342
تاريخ النشر: 2025-06-19
المؤلف: Jenny T. Liang وآخرون
الموضوع الرئيسي: أبحاث هندسة البرمجيات
نظرة عامة
تستكشف هذه الورقة البحثية مفهوم “برمجة المطالبات”، وهو ظاهرة مميزة في تطوير البرمجيات حيث يقوم المطورون بإنشاء مطالبات بلغة طبيعية للتفاعل مع النماذج المدربة مسبقًا (FMs). من خلال مقابلات مع 20 مطورًا، تستخدم الدراسة نظرية grounded theory من نوع ستراوس لتحليل عملية تطوير المطالبات، مما يكشف أن هذه المطالبات يمكن اعتبارها شكلًا من أشكال البرمجة. يقدم المؤلفون 15 ملاحظة تسلط الضوء على التحديات الفريدة التي يواجهها مبرمجو المطالبات، مثل اعتمادهم على فهم سلوك النموذج بدلاً من نماذج التفكير التقليدية في البرمجة. ومن الجدير بالذكر أن حتى مبرمجي المطالبات ذوي الخبرة يواجهون صعوبة في تشكيل نماذج عقلية موثوقة للنماذج، مما يشير إلى انحراف عن ممارسات تطوير البرمجيات التقليدية.
لضمان صحة استنتاجاتهم، نفذ المؤلفون طرق تحليل نوعية صارمة، بما في ذلك تقييمات موثوقية المقيمين والتحقق مع المشاركين وخبير خارجي. تشير النتائج إلى أنه بينما توجد أوجه تشابه بين برمجة المطالبات والهندسة البرمجية التقليدية، فإن الاختلافات الكبيرة تستدعي تطوير أدوات متخصصة لبرمجة المطالبات. تسهم هذه الدراسة في تقديم رؤى قيمة لكل من المجتمع الأكاديمي والممارسين المعنيين بإنشاء واستخدام أدوات برمجة المطالبات.
مقدمة
تناقش مقدمة الورقة البحثية التأثير التحويلي للنماذج المدربة مسبقًا (FMs)، مثل GPT-4 وDall-E، على ممارسات تطوير البرمجيات. لقد عززت هذه النماذج إنتاجية المبرمجين من خلال المساعدة في توليد الشفرات، وتعلم واجهات برمجة التطبيقات الجديدة، وكتابة الاختبارات. لقد وسعت ظهور النماذج المدربة على التعليمات، مثل ChatGPT، من فائدتها في مهام تطوير البرمجيات من خلال المطالبات بلغة طبيعية، مما أدى إلى ممارسة “هندسة المطالبات”. تتضمن هذه الممارسة تحسين المطالبات بشكل تكراري لتحسين المخرجات من النماذج وقد اكتسبت زخمًا في تطبيقات متنوعة، تصل إلى ملايين المستخدمين.
يحدد المؤلفون فجوة في الأدبيات الحالية بشأن العلاقة بين هندسة المطالبات والبرمجة، لا سيما خارج السياقات الحرة والمهنية. يقترحون مفهوم “برمجة المطالبات”، حيث تعمل المطالبات كبرامج قابلة للتنفيذ مكتوبة بلغة طبيعية، قادرة على التعامل مع المدخلات المتغيرة في وقت التشغيل. يتم وضع هذه الظاهرة كمنطقة دراسية مميزة، حيث تختلف عملية البرمجة بشكل كبير عبر سياقات المستخدمين المختلفة، مثل برمجة المستخدم النهائي والبرمجة الاستكشافية. تهدف الورقة إلى استكشاف ممارسات برمجة المطالبات بشكل منهجي من خلال منهجية نوعية تعرف بنظرية grounded theory من نوع ستراوس، من خلال مقابلة المطورين لفهم كيفية إنشاء البرمجيات التي تتضمن مطالبات بلغة طبيعية. من المتوقع أن تسهم النتائج في تطوير أدوات دعم مخصصة لمبرمجي المطالبات.
طرق
في هذه الدراسة، استخدم المؤلفون منهجية نوعية للتحقيق في تطوير البرمجيات المدعومة بالمطالبات، نظرًا لندرة الأدبيات الموجودة حول برمجة المطالبات. استخدموا نهج نظرية grounded theory من نوع ستراوس، والذي يتميز بإجراءاته المنهجية وإطاره المعرفي، مما يسمح بتوليد تفسير استكشافي جديد ضمن هذا المجال.
شمل عملية البحث عدة مكونات رئيسية: تعريف الحساسية النظرية، أخذ عينات من التباين الأقصى، وإجراء مقابلات لمدة 45 دقيقة لجمع البيانات. تم إجراء التحليل النوعي من خلال الترميز المفتوح والمحوري، مدعومًا بمراجعة خمسة أوراق ذات صلة لضمان تقييم الملاءمة. بالإضافة إلى ذلك، تم تحقيق مثلث الأدبيات من خلال دمج رؤى من 33 ورقة، وتم تقييم موثوقية المقيمين باستخدام كابا كوهين لتعزيز قوة النتائج.
نتائج
في نتائج الدراسة، تم تحديد حاجزين كبيرين في برمجة المطالبات للمبرمجين. أولاً، لوحظ أن المبرمجين مطالبون ببناء نموذج عقلي لفهم سلوك النموذج الإطاري (FM) استجابةً للمطالبات. تؤكد هذه الضرورة على العبء المعرفي المفروض على المبرمجين أثناء محاولتهم التنبؤ والتلاعب بمخرجات النموذج بشكل فعال.
ثانيًا، كشفت الدراسة أن هذه النماذج العقلية غالبًا ما تكون غير موثوقة، مما يشير إلى أن المبرمجين قد يواجهون صعوبة في توقع سلوك النموذج بدقة بناءً على نماذجهم المبنية. قد تعيق هذه اللاموثوقية فعالية برمجة المطالبات وتشير إلى الحاجة إلى تحسين الأدوات أو المنهجيات لدعم المبرمجين في تطوير تمثيلات عقلية أكثر دقة لسلوك النموذج.
نقاش
في قسم النقاش من الورقة البحثية، يستكشف المؤلفون التعقيدات والحواجز المرتبطة ببرمجة المطالبات، مؤكدين على دور النماذج الأساسية (FMs) وتعقيدات تصميم المطالبات. يحددون 15 ملاحظة رئيسية مصنفة إلى أربعة أنواع من الحواجز: فهم سلوك النموذج، التعامل مع العشوائية، البرمجة بلغة طبيعية، واختبار سلوك برنامج المطالبات. من النتائج الملحوظة أن مبرمجي المطالبات يواجهون صعوبة في تطوير نماذج عقلية موثوقة لسلوك النموذج، مما يعقد عملية تطوير المطالبات ويؤدي إلى نهج سريع وغير منهجي. يتناقض هذا مع الأدبيات الحالية التي تقترح أن الخبراء عادةً ما يمتلكون نماذج عقلية متشكلة بشكل جيد.
يمدد المؤلفون تعريف برنامج المطالبات ليشمل المطالبات التي تقبل المدخلات المتغيرة ويمكن تفسيرها بواسطة النماذج لأداء إجراءات محددة ضمن تطبيقات البرمجيات. يبرزون الحاجة إلى أدوات وعمليات جديدة مصممة لدعم برمجة المطالبات، نظرًا لتحدياتها المميزة مقارنة بتطوير البرمجيات التقليدي. تحمل النتائج تداعيات لممارسي البرمجيات، والأكاديميين، ومبدعي الأدوات، والمعلمين المشاركين في الذكاء الاصطناعي التوليدي في هندسة البرمجيات، مما يشير إلى الحاجة إلى فهم أعمق لممارسات برمجة المطالبات وتطوير موارد داعمة.
DOI: https://doi.org/10.1145/3729342
Publication Date: 2025-06-19
Author(s): Jenny T. Liang et al.
Primary Topic: Software Engineering Research
Overview
This research paper explores the concept of “prompt programming,” a distinct phenomenon in software development where developers create natural language prompts to interact with generative pre-trained models (FMs). Through interviews with 20 developers, the study employs Straussian grounded theory to analyze the development process of prompts, revealing that these prompts can be viewed as a form of programming. The authors present 15 observations that highlight the unique challenges faced by prompt programmers, such as their reliance on understanding the FM’s behavior rather than traditional coding mental models. Notably, even experienced prompt programmers struggle to form reliable mental models of FMs, indicating a divergence from conventional software development practices.
To ensure the validity of their conclusions, the authors implemented rigorous qualitative analysis methods, including inter-rater reliability assessments and validation with participants and an external expert. The findings suggest that while there are parallels between prompt programming and traditional software engineering, significant differences warrant the development of specialized tools for prompt programming. This research contributes valuable insights for both the academic community and practitioners involved in the creation and utilization of prompt programming tools.
Introduction
The introduction of the research paper discusses the transformative impact of generative pre-trained models (FMs), such as GPT-4 and Dall-E, on software development practices. These models have enhanced programmer productivity by assisting in code generation, learning new APIs, and writing tests. The emergence of instruction-tuned FMs, like ChatGPT, has further expanded their utility in software development tasks through natural language prompts, leading to the practice of “prompt engineering.” This practice involves the iterative refinement of prompts to optimize outputs from FMs and has gained traction in various applications, reaching millions of users.
The authors identify a gap in the existing literature regarding the relationship between prompt engineering and programming, particularly beyond freelance and professional contexts. They propose the concept of “prompt programming,” where prompts serve as executable programs written in natural language, capable of handling variable inputs at runtime. This phenomenon is positioned as a distinct area of study, as the programming process varies significantly across different user contexts, such as end-user programming and exploratory programming. The paper aims to systematically explore prompt programming practices through a qualitative methodology known as Straussian grounded theory, interviewing developers to understand how they create software that incorporates natural language prompts. The findings are expected to inform the development of tailored support tools for prompt programmers.
Methods
In this study, the authors employed a qualitative methodology to investigate the development of prompt-powered software, given the scarcity of existing literature on prompt programming. They utilized the Straussian grounded theory approach, which is characterized by its systematic procedures and epistemological framework, allowing for the generation of a novel exploratory explanation within the domain.
The research process involved several key components: defining theoretical sensitivity, maximum variation sampling, and conducting 45-minute interviews for data collection. The qualitative analysis was performed through open and axial coding, supplemented by a review of five relevant papers to ensure fit assessment. Additionally, literature triangulation was achieved by incorporating insights from 33 papers, and inter-rater reliability was evaluated using Cohen’s Kappa to enhance the robustness of the findings.
Results
In the study’s findings, two significant barriers in prompt programming for programmers were identified. First, it was noted that programmers are required to construct a mental model to understand the behavior of the framework model (FM) in response to prompts. This necessity underscores the cognitive load placed on programmers as they attempt to predict and manipulate the FM’s outputs effectively.
Second, the research revealed that these mental models are often unreliable, suggesting that programmers may struggle to accurately anticipate the FM’s behavior based on their constructed models. This unreliability could hinder the effectiveness of prompt programming and indicates a need for improved tools or methodologies to support programmers in developing more accurate mental representations of FM behavior.
Discussion
In the discussion section of the research paper, the authors explore the complexities and barriers associated with prompt programming, emphasizing the role of foundation models (FMs) and the intricacies of prompt design. They identify 15 key observations categorized into four types of barriers: understanding FM behavior, dealing with stochasticity, programming in natural language, and testing prompt program behavior. A notable finding is that prompt programmers struggle to develop reliable mental models of FM behavior, which complicates the prompt development process and leads to a rapid and unsystematic approach. This contrasts with existing literature that suggests experts typically have well-formed mental models.
The authors extend the definition of a prompt program to encompass prompts that accept variable inputs and can be interpreted by FMs to perform specified actions within software applications. They highlight the need for new tools and processes tailored to support prompt programming, given its distinct challenges compared to traditional software development. The findings have implications for software practitioners, academics, tool creators, and educators engaged with generative AI in software engineering, suggesting a need for a deeper understanding of prompt programming practices and the development of supportive resources.
