...
首页> 外文期刊>Science of Computer Programming >Understanding stack overflow code quality: A recommendation of caution
【24h】

Understanding stack overflow code quality: A recommendation of caution

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

获取原文
获取原文并翻译 | 示例
           

摘要

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)平台使用在线组的权力来解决问题或获得信息。虽然这些网站主持有用信息,但这些平台上提供的细节很重要,而且用户可以信任信息。当在当代社会的所有部分中使用软件无处不在的软件,这是特别必要的。堆栈溢出是程序员的领先CQA平台,社区包含超过1000万贡献者。虽然研究证实了堆栈溢出的普及,但对堆栈溢出问题提供的答案质量提出了疑虑。这些答案中通常包含的代码片段已经研究过;然而,这些人工制品的质量仍然不清楚。这可能是软件工程社区有问题,因为证据表明堆栈溢出片段经常用于开源和商业软件。这项研究通过评估堆栈溢出上的代码片段质量来填补这种差距。我们探讨了代码片段质量的各个方面,包括可靠性和符合编程规则,可读性,性能和安全性的可靠性和一致性。结果表明了不同尺寸的堆栈溢出代码片段质量的变化;但是,总体而言,堆栈溢出片段的质量问题并不总是严重。为重用堆栈溢出代码片段鼓励警惕。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号