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 条
  • [41] An Observational Study on Flask Web Framework Questions on Stack Overflow (SO)
    Albesher, Luluh
    Alfayez, Reem
    IET SOFTWARE, 2024, 2024
  • [42] Characterizing architecture related posts and their usefulness in Stack Overflow
    Dieu, Musengamana Jean de
    Liang, Peng
    Shahin, Mojtaba
    Khan, Arif Ali
    JOURNAL OF SYSTEMS AND SOFTWARE, 2023, 198
  • [43] Computer anxiety and perception of task complexity in learning programming-related skills
    Chang, SE
    COMPUTERS IN HUMAN BEHAVIOR, 2005, 21 (05) : 713 - 728
  • [44] SPRAG: building and benchmarking a Short Programming-Related Answer Grading dataset
    Bonthu, Sridevi
    Sree, S. Rama
    Prasad, M. H. M. Krishna
    INTERNATIONAL JOURNAL OF DATA SCIENCE AND ANALYTICS, 2024,
  • [45] Mining the Usage of Reactive Programming APIs: A Study on GitHub and Stack Overflow
    Zimmerle, Carlos
    Gama, Kiev
    Castor, Fernando
    Mota Filho, Jose Murilo
    2022 MINING SOFTWARE REPOSITORIES CONFERENCE (MSR 2022), 2022, : 203 - 214
  • [46] Predicting the Programming Language: Extracting Knowledge from Stack Overflow Posts
    Baquero, Juan F.
    Camargo, Jorge E.
    Restrepo-Calle, Felipe
    Aponte, Jairo H.
    Gonzalez, Fabio A.
    ADVANCES IN COMPUTING, CCC 2017, 2017, 735 : 199 - 210
  • [47] Mining the Usage of Reactive Programming APIs: A Study on GitHub and Stack Overflow
    Zimmerle, Carlos
    Gama, Kiev
    Castor, Fernando
    Filho, Jose Murilo Mota
    Proceedings - 2022 Mining Software Repositories Conference, MSR 2022, 2022, : 203 - 214
  • [48] Experiences from placing Stack Overflow at the core of an intermediate programming course
    Lopez-Nores, Martin
    Blanco-Fernandez, Yolanda
    Bravo-Torres, Jack F.
    Pazos-Arias, Jose J.
    Gil-Solla, Alberto
    Ramos-Cabrer, Manuel
    COMPUTER APPLICATIONS IN ENGINEERING EDUCATION, 2019, 27 (03) : 698 - 707
  • [49] Exploring Online Programming-related Information Seeking Behaviors via Discussion Forums
    Lu, Yihan
    Hsiao, I-Han
    Li, Qi
    2016 IEEE 16TH INTERNATIONAL CONFERENCE ON ADVANCED LEARNING TECHNOLOGIES (ICALT), 2016, : 283 - 287
  • [50] A study on classifying Stack Overflow questions based on difficulty by utilizing contextual features
    Raida, Maliha Noushin
    Sristy, Zannatun Naim
    Ulfat, Nawshin
    Monisha, Sheikh Moonwara Anjum
    Mostafa, Md. Jubair Ibna
    Haque, Md. Nazmul
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 208