Suche nach Personen

plus im Publikationsserver
plus bei Google Scholar

Bibliografische Daten exportieren
 

The Influence of Code Comments on the Perceived Helpfulness of Stack Overflow Posts

DOI zum Zitieren der Version auf EPub Bayreuth: https://doi.org/10.15495/EPub_UBT_00008941
URN zum Zitieren der Version auf EPub Bayreuth: urn:nbn:de:bvb:703-epub-8941-4

Titelangaben

Figl, Kathrin ; Kirchner, Maria ; Baltes, Sebastian ; Felderer, Michael:
The Influence of Code Comments on the Perceived Helpfulness of Stack Overflow Posts.
In: Empirical Software Engineering. Bd. 30 (2025) . - 178.
ISSN 1573-7616
DOI der Verlagsversion: https://doi.org/10.1007/s10664-025-10727-w

Volltext

[thumbnail of s10664-025-10727-w.pdf]
Format: PDF
Name: s10664-025-10727-w.pdf
Version: Veröffentlichte Version
Verfügbar mit der Lizenz Creative Commons BY 4.0: Namensnennung
Download (1MB)

Angaben zu Projekten

Projekttitel:
Offizieller Projekttitel
Projekt-ID
Open Access Publizieren
Ohne Angabe

Abstract

Question-and-answer platforms such as Stack Overflow are an important way for software developers to share and retrieve knowledge. However, reusing poorly understood code can lead to serious problems, such as bugs or security vulnerabilities. To better understand how code comments affect the perceived helpfulness of Stack Overflow answers, we conducted an online experiment simulating a Stack Overflow environment (n=91). The results indicate that both block and inline comments are perceived as significantly more helpful than uncommented source code. Moreover, novices rated code snippets with block comments as more helpful than those with inline comments. Interestingly, other surface features, such as the position of an answer and its answer score, were considered less important. Moreover, the content of Stack Overflow has been a major source for training large language models. AI-based coding assistants such as GitHub Copilot, which are based on these models, are changing the way Stack Overflow is used. However, our findings have implications beyond Stack Overflow. First, they may help to improve the relevance also of other community-driven platforms, which provide human advice and explanations of code solutions, complementing AI-based support for software developers. Second, since chat-based AI tools can be prompted to generate code in different ways, knowing which properties influence perceived helpfulness can lead to more targeted prompting strategies to generate readable code snippets.

Weitere Angaben

Publikationsform: Artikel in einer Zeitschrift
Themengebiete aus DDC: 000 Informatik,Informationswissenschaft, allgemeine Werke > 004 Informatik
Institutionen der Universität: Fakultäten > Fakultät für Mathematik, Physik und Informatik > Institut für Informatik > Ehemalige ProfessorInnen > Lehrstuhl Angewandte Informatik I - Univ.-Prof. Dr. Sebastian Baltes
Fakultäten
Fakultäten > Fakultät für Mathematik, Physik und Informatik
Fakultäten > Fakultät für Mathematik, Physik und Informatik > Institut für Informatik
Fakultäten > Fakultät für Mathematik, Physik und Informatik > Institut für Informatik > Ehemalige ProfessorInnen
Sprache: Englisch
Titel an der UBT entstanden: Ja
URN: urn:nbn:de:bvb:703-epub-8941-4
Eingestellt am: 02 Mrz 2026 13:07
Letzte Änderung: 02 Mrz 2026 13:07
URI: https://epub.uni-bayreuth.de/id/eprint/8941

Downloads

Downloads pro Monat im letzten Jahr