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 条
  • [1] The reproducibility of programming-related issues in Stack Overflow questions
    Saikat Mondal
    Mohammad Masudur Rahman
    Chanchal K. Roy
    Kevin Schneider
    Empirical Software Engineering, 2022, 27
  • [2] Reproducibility of issues reported in stack overflow questions: Challenges, impact & estimation
    Mondal, Saikat
    Roy, Banani
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 217
  • [3] A Methodology for Detecting Programming Languages in Stack Overflow Questions
    Swaraj, Aman
    Kumar, Sandeep
    PROCEEDINGS OF THE 17TH INTERNATIONAL CONFERENCE ON SOFTWARE TECHNOLOGIES (ICSOFT), 2022, : 478 - 483
  • [4] Understanding Privacy-Related Questions on Stack Overflow
    Tahaei, Mohammad
    Vaniea, Kami
    Saphra, Naomi
    PROCEEDINGS OF THE 2020 CHI CONFERENCE ON HUMAN FACTORS IN COMPUTING SYSTEMS (CHI'20), 2020,
  • [5] Recommending APIs for API Related Questions in Stack Overflow
    Zhang, Jingxuan
    Jiang, He
    Ren, Zhilei
    Chen, Xin
    IEEE ACCESS, 2018, 6 : 6205 - 6219
  • [6] SCC plus plus : Predicting the programming language of questions and snippets of Stack Overflow
    Alrashedy, Kamel
    Dharmaretnam, Dhanush
    German, Daniel M.
    Srinivasan, Venkatesh
    Gulliver, T. Aaron
    JOURNAL OF SYSTEMS AND SOFTWARE, 2020, 162
  • [7] Related Questions Retrieval Model in Stack Overflow based on Semantic Matching
    Qin, Zishan
    Wu, Yimin
    Pei, Jiayan
    Lu, Jinwei
    Huang, Shizhao
    Liu, Liqun
    2022 IEEE 46TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE (COMPSAC 2022), 2022, : 321 - 326
  • [8] An Insight into the Unresolved Questions at Stack Overflow
    Rahman, Mohammad Masudur
    Roy, Chanchal K.
    12TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2015), 2015, : 426 - 429
  • [9] Predicting Questions' Scores on Stack Overflow
    Alharthi, Haifa
    Outioua, Djedjiga
    Baysal, Olga
    2016 IEEE/ACM 3RD INTERNATIONAL WORKSHOP ON CROWDSOURCING IN SOFTWARE ENGINEERING (CSI-SE), 2016, : 1 - 7
  • [10] Is Stack Overflow Overflowing With Questions and Tags
    Ranjitha, R. K.
    Singh, Sanjay
    PROCEEDING OF THE THIRD INTERNATIONAL SYMPOSIUM ON WOMEN IN COMPUTING AND INFORMATICS (WCI-2015), 2015, : 278 - 283