当前位置: X-MOL 学术Sci. Comput. Program. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Understanding stack overflow code quality: A recommendation of caution
Science of Computer Programming ( IF 1.3 ) Pub Date : 2020-07-10 , DOI: 10.1016/j.scico.2020.102516
Sarah Meldrum , Sherlock A. Licorish , Caitlin A. Owen , Bastin Tony Roy Savarimuthu

Community Question and Answer (CQA) platforms use the power of online groups to solve problems, or gain information. While these websites host useful information, it is critical that the details provided on these platforms are of high quality, and that users can trust the information. This is particularly necessary for software development, given the ubiquitous use of software across all sections of contemporary society. Stack Overflow is the leading CQA platform for programmers, with a community comprising over 10 million contributors. While research confirms the popularity of Stack Overflow, concerns have been raised about the quality of answers that are provided to questions on Stack Overflow. Code snippets often contained in these answers have been investigated; however, the quality of these artefacts remains unclear. This could be problematic for the software engineering community, as evidence has shown that Stack Overflow snippets are frequently used in both open source and commercial software. This research fills this gap by evaluating the quality of code snippets on Stack Overflow. We explored various aspects of code snippet quality, including reliability and conformance to programming rules, readability, performance and security. Outcomes show variation in the quality of Stack Overflow code snippets for the different dimensions; however, overall, quality issues in Stack Overflow snippets were not always severe. Vigilance is encouraged for those reusing Stack Overflow code snippets.



中文翻译:

了解堆栈溢出代码质量:谨慎建议

社区问答(CQA)平台使用在线小组的功能来解决问题或获取信息。这些网站托管有用的信息时,至关重要的是,这些平台上提供的详细信息必须具有高质量,并且用户可以信任该信息。鉴于当代社会各个领域都普遍使用软件,因此这对于软件开发尤为必要。Stack Overflow是面向程序员的领先CQA平台,其社区包括超过1000万贡献者。虽然研究证实了Stack Overflow的流行,但人们对提供给Stack Overflow的问题的答案的质量提出了担忧。这些答案中经常包含的代码片段已经过调查;然而,这些人工制品的质量仍不清楚。这对于软件工程界可能是个问题,因为有证据表明,Stack Overflow片段在开源和商业软件中都经常使用。这项研究通过评估Stack Overflow上代码片段的质量来填补这一空白。我们探索了代码片段质量的各个方面,包括可靠性和对编程规则的符合性,可读性,性能和安全性。结果表明,不同尺寸的堆栈溢出代码段的质量有所不同。但是,总的来说,堆栈溢出摘要中的质量问题并不总是很严重。对于那些重用Stack Overflow代码段的人,请提高警惕。这项研究通过评估Stack Overflow上代码片段的质量来填补这一空白。我们探索了代码片段质量的各个方面,包括可靠性和对编程规则的符合性,可读性,性能和安全性。结果表明,不同尺寸的堆栈溢出代码段的质量有所不同。但是,总的来说,堆栈溢出摘要中的质量问题并不总是很严重。对于那些重用Stack Overflow代码段的人,请提高警惕。这项研究通过评估Stack Overflow上代码片段的质量来填补这一空白。我们探索了代码片段质量的各个方面,包括可靠性和对编程规则的符合性,可读性,性能和安全性。结果表明,不同尺寸的堆栈溢出代码段的质量有所不同。但是,总的来说,堆栈溢出摘要中的质量问题并不总是很严重。对于那些重用Stack Overflow代码段的人员,请提高警惕。堆栈溢出摘要中的质量问题并不总是很严重。对于那些重用Stack Overflow代码段的人员,请提高警惕。堆栈溢出摘要中的质量问题并不总是很严重。对于那些重用Stack Overflow代码段的人,请提高警惕。

更新日期:2020-07-10
down
wechat
bug