开发人员对Stack Overflow上过期和违规代码的认识和经验:一项在线调查
Awareness and Experience of Developers to Outdated and License-Violating Code on Stack Overflow: An Online Survey
摘要:
我们对Stack Overflow的回答者和访问者进行了两次在线调查,以评估他们对Stack Overflow回答者中过时代码和软件许可证的认识。该调查针对607位知名的Stack Overflow用户,获得了33%的高响应率。我们的调查结果如下。虽然答案中的大多数代码片段都是从头开始编写的,但也有一些代码片段是从相应的问题中克隆出来的,来自个人或公司项目,或者来自开源项目。Stack Overflow的回答者意识到他们的一些片段已经过时了。然而,19%的参与者报告说他们很少或从不修复过时的代码。至少98%的回答者从不在他们的代码片段中包含软件许可证,69%的人从不检查与Stack Overflow的CC BY-SA 3.0的许可冲突,如果他们将其他来源的代码复制到Stack Overflow的答案中。访问者调查采用方便的抽样方法,收到89份答复。我们发现,66%的参与者在克隆和重用Stack Overflow代码段时遇到了问题。56%的访问者从未向Stack Overflow帖子报告问题。85%的参与者不知道StackOverflow应用了CC BY-SA 3.0许可证,62%的参与者从未对Stack Overflow的帖子或答案进行归因。此外,66%的参与者没有检查复制的Stack Overflow代码和他们的软件之间的许可冲突。根据这些发现,我们建议Stack Overflow提高其用户(包括回复者和访问者)对过时和违反许可证的代码片段问题的认识。
英文摘要:
We performed two online surveys of Stack Overflow answerers and visitors to assess their awareness to outdated code and software licenses in Stack Overflow answerers. The answerer survey targeted 607 highly reputed Stack Overflow users and received a high response rate of 33%. Our findings are as follows. Although most of the code snippets in the answers are written from scratch, there are code snippets cloned from the corresponding questions, from personal or company projects, or from open source projects. Stack Overflow answerers are aware that some of their snippets are outdated. However, 19% of the participants report that they rarely or never fix their outdated code. At least 98% of the answerers never include software licenses in their snippets and 69% never check for licensing conflicts with Stack Overflow's CC BY-SA 3.0 if they copy the code from other sources to Stack Overflow answers. The visitor survey uses convenient sampling and received 89 responses. We found that 66% of the participants experienced a problem from cloning and reusing Stack Overflow snippets. Fifty-six percent of the visitors never reported the problems back to the Stack Overflow post. Eighty-five percent of the participants are not aware that StackOverflow applies the CC BY-SA 3.0 license, and sixty-two percent never give attributions to Stack Overflow posts or answers they copied the code from. Moreover, 66% of the participants do not check for licensing conflicts between the copied Stack Overflow code and their software. With these findings, we suggest Stack Overflow raise awareness of their users, both answerers and visitors, to the problem of outdated and license-violating code snippets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。