arrow
返回

Toxic Code Snippets on Stack Overflow

delete2021-03-01
delete62
delete
OA
AI
C
Chaiyong Ragkhitwetsagul *
J
Jens Krinke
M
Matheus Paixão
G
Giuseppe Bianco
Rocco Oliveto 封面图
Rocco Oliveto (Rocco Oliveto)
DOI:10.1109/TSE.2019.2900307delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Online code clones are code fragments that are copied from software projects or online sources to Stack Overflow as examples. Due to an absence of a checking mechanism after the code has been copied to Stack Overflow, they can become toxic code snippets, e.g., they suffer from being outdated or violating the original software license. We present a study of online code clones on Stack Overflow and their toxicity by incorporating two developer surveys and a large-scale code clone detection. A survey of 201 high-reputation Stack Overflow answerers (33 percent response rate) showed that 131 participants (65 percent) have ever been notified of outdated code and 26 of them (20 percent) rarely or never fix the code. 138 answerers (69 percent) never check for licensing conflicts between their copied code snippets and Stack Overflow's CC BY-SA 3.0. A survey of 87 Stack Overflow visitors shows that they experienced several issues from Stack Overflow answers: mismatched solutions, outdated solutions, incorrect solutions, and buggy code. 85 percent of them are not aware of CC BY-SA 3.0 license enforced by Stack Overflow, and 66 percent never check for license conflicts when reusing code snippets. Our clone detection found online clone pairs between 72,365 Java code snippets on Stack Overflow and 111 open source projects in the curated Qualitas corpus. We analysed 2,289 non-trivial online clone candidates. Our investigation revealed strong evidence that 153 clones have been copied from a Qualitas project to Stack Overflow. We found 100 of them (66 percent) to be outdated, of which 10 were buggy and harmful for reuse. Furthermore, we found 214 code snippets that could potentially violate the license of their original software and appear 7,112 times in 2,427 GitHub projects.
Keyword:
Cloning
Licenses
Software
Programming
Computer bugs
Security
Tutorials
Code clone detection
stack overflow
outdated code
software licensing
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

An empirical study on bug propagation through code cloning基于代码克隆的bug传播实证研究
err2019-12-01
err8
PREAI
errMondal, Manishankar; Roy, Banani; Roy, Chanchal K.; Schneider, Kevin A.
err分享
err收藏
err分享
err收藏
Broken External Links on Stack Overflow堆栈溢出时断开的外部链接
err2022-09-01
err5
errOAAI
errLiu, Jiakun; Xia, Xin; Lo, David; Zhang, Haoxiang; Zou, Ying; Hassan, Ahmed E.; Li, Shanping
err分享
err收藏

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
3.0K
被引数:
1.3W

机构

U
university college london
学者数:
5.2K
论文数: 2.3K
被引数: 5.8W
U
universidade estadual do ceará
学者数:
96
论文数: 27
被引数: 232
M
Mahidol University
学者数:
1.4K
论文数: 500
被引数: 7.1K
U
University of London
学者数:
1.7K
论文数: 763
被引数: 14.7W
U
University of Molise
学者数:
142
论文数: 65
被引数: 1.3K
学者 查看更多机构
引用论文

引用论文

err分享
err收藏
Sustainability of the community-based ecotourism development in the Aksu-Zhabagly nature reserve, Kazakhstan
err2022-03-07
err0
errOAAI
errImanaly Akbar; Sergeyeva Aigul Maksatovna; Myrzaliyeva Zabira Kazbekkyzy; Tazhekova Akmaral Zhaksybekkyzy; Saulembaev Altynbai Tagabayevich; Mominov Serik Abdukarimovich
err分享
err收藏
Dual Hole Transport Layers Heterojunction and Band Alignment Engineered Mo:BiVO4 Photoanodes for Efficient Water Splitting (Small 37/2024)
err2024-09-13
err0
PREAI
errGuilin Wang; Tongxin Tang; Kai‐Hang Ye; Xin Ding; Junwei Chen; WenHao Zou; Yushen Xiao; JieYu Li; Long Zhao; Chaojie Chen; Sitong Ge; Lei Li; Xiujuan Wei; Chao Chen; Yang Cao; Zhan Lin; Shanqing Zhang
err分享
err收藏
err分享
err收藏
学者 查看更多内容