The reproducibility of programming-related issues in Stack Overflow questions

被引:3
|
作者
Mondal, Saikat [1 ]
Rahman, Mohammad Masudur [2 ]
Roy, Chanchal K. [1 ]
Schneider, Kevin [1 ]
机构
[1] Univ Saskatchewan, Dept Comp Sci, Software Res Lab, Saskatoon, SK, Canada
[2] Dalhousie Univ, Fac Comp Sci, Halifax, NS, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
Issue reproducibility; Stack overflow; Code segments; Code level modifications; Reproducibility challenges; UNDERSTANDABILITY;
D O I
10.1007/s10664-021-10113-2
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software developers often look for solutions to their code-level problems using the Stack Overflow Q&A website. To receive help, developers frequently submit questions that contain sample code segments along with the description of the programming issue. Unfortunately, it is not always possible to reproduce the issues from the code segments they provide. Issues that are not easily reproducible may impede questions from receiving prompt and appropriate solutions. We conducted an exploratory study on the reproducibility of issues discussed in 400 Java and 400 Python questions. We parsed, compiled, executed, and carefully examined the code segments from these questions to reproduce the reported programming issues, expending 300 person-hours of effort. The outcomes of our study are three-fold. First, we can reproduce the issues for approximately 68% of Java and 71% of Python code segments. In contrast, we were unable to reproduce approximately 22% of Java and 19% of Python issues. Of the reproducible issues, approximately 67% of the Java and 20% of the Python code segments required minor or major modifications to reproduce the issues. Second, we carefully investigated why programming issues could not be reproduced and provided evidence-based guidelines to write effective code examples for Stack Overflow questions. Third, we investigated the correlation between the issue reproducibility status of questions and the corresponding answer meta-data, such as the presence of an accepted answer. According to our analysis, a reproducible question has at least two times higher chance of receiving an accepted answer than an irreproducible question. Besides, the median time delay in receiving accepted answers is double if the issues reported in questions could not be reproduced. We also investigated the confounding factors (e.g., user reputation) that can affect questions receiving answers besides reproducibility. We found that such factors do not hurt the correlation between reproducibility status and answer meta-data.
引用
收藏
页数:52
相关论文
共 50 条
  • [21] A Recommendation Service for Programming Study Based on Stack Overflow
    Shao, Jialun
    Sun, Yanchun
    2018 IEEE WORLD CONGRESS ON SERVICES (IEEE SERVICES 2018), 2018, : 13 - 14
  • [22] Predicting Tags of Stack Overflow Questions: A Deep Learning Approach
    Subramani, Srinivas
    Rajesh, Sangeetha
    Wankhede, Kirti
    Wukkadada, Bharati
    2023 Somaiya International Conference on Technology and Information Management, SICTIM 2023, 2023, : 64 - 66
  • [23] Insights on Apache Spark Usage by Mining Stack Overflow Questions
    Rodriguez, Leonardo Jimenez
    Wang, Xiaoran
    Kuang, Jilong
    2018 IEEE INTERNATIONAL CONGRESS ON BIG DATA (IEEE BIGDATA CONGRESS), 2018, : 219 - 223
  • [24] Characterization and Prediction of Questions without Accepted Answers on Stack Overflow
    Yazdaninia, Mohamad
    Lo, David
    Sami, Ashkan
    2021 IEEE/ACM 29TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2021), 2021, : 59 - 70
  • [25] Automatic Voter Recommendation Method for Closing Questions in Stack Overflow
    Zhang, Zhang
    Mao, Xinjun
    Lu, Yao
    Lu, Jinyu
    Yu, Yue
    Li, Zhixing
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2020, 30 (11-12) : 1707 - 1733
  • [26] Empirical Study of the Evolution of Python']Python Questions on Stack Overflow
    Syam, Gopika
    Lal, Sangeeta
    Chen, Tao
    E-INFORMATICA SOFTWARE ENGINEERING JOURNAL, 2023, 17 (01)
  • [27] Emotion-based analysis of programming languages on Stack Overflow
    Cagnoni, Stefano
    Cozzini, Lorenzo
    Lombardo, Gianfranco
    Mordonini, Monica
    Poggi, Agostino
    Tomaiuolo, Michele
    ICT EXPRESS, 2020, 6 (03): : 238 - 242
  • [28] PARALLEL PROGRAMMING - ISSUES AND QUESTIONS
    THAKKAR, SS
    IEEE SOFTWARE, 1988, 5 (01) : 8 - 9
  • [29] An Empirical Study of Package Management Issues via Stack Overflow
    Islam, Syful
    Kula, Raula Gaikovina
    Treude, Christoph
    Chinthanet, Bodin
    Ishio, Takashi
    Matsumoto, Kenichi
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2023, E106D (02) : 138 - 147
  • [30] Automatic title completion for Stack Overflow posts and GitHub issues
    Chen, Xiang
    Pei, Wenlong
    Yang, Shaoyu
    Zhou, Yanlin
    Zhang, Zichen
    Pei, Jiahua
    EMPIRICAL SOFTWARE ENGINEERING, 2024, 29 (05)