【24h】

Understanding Stack Overflow Code Fragments

机译:了解堆栈溢出代码片段

获取原文

摘要

Code fragments posted in answers on Q&A forums can form an important source of developer knowledge. However, effective reuse of code fragments found online often requires information other than the code fragment alone. We report on the results of a survey-based study to investigate to what extent developers perceive Stack Overflow code fragments to be self-explanatory. As part of the study, we also investigated the types of information missing from fragments that were not self-explanatory. We find that less than half of the Stack Overflow code fragments in our sample are considered to be self-explanatory by the 321 participants who answered our survey, and that the main issues that negatively affect code fragment understandability include incomplete fragments, code quality, missing rationale, code organization, clutter, naming issues, and missing domain information. This study is a step towards understanding developers' information needs as they relate to code fragments, and how these needs can be addressed.
机译:在问答论坛的答案中发布的代码片段可以形成开发人员知识的重要来源。但是,在线找到的代码片段的有效重用通常需要单独的代码片段以外的信息。我们报告了一项基于调查的研究结果,以调查开发人员在多大程度上感知堆栈溢出代码片段是不言自明的。作为研究的一部分,我们还调查了不自我解释的片段中缺失的信息类型。我们发现,我们样本中的堆栈溢出代码片段的堆栈溢出代码片段中的一半被认为是由回答我们调查的321名参与者的自我解释,以及负面影响代码片段的主要问题包括不完整的碎片,代码质量,丢失理由,代码组织,杂乱,命名问题和缺少域信息。本研究是了解开发人员信息需求的步骤,因为它们与代码片段相关,以及如何解决这些需求。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号