黑客代码的秘密生活
The Secret Life of Hackathon Code
摘要:
背景:黑客松已经成为团队合作项目和开发软件原型的热门活动。大多数现有的研究集中在事件期间的活动,对黑客攻击期间带来或创建的代码的演变关注有限。目的:我们的目标是了解与黑客松相关的代码的演变,具体来说,黑客松团队在多大程度上依赖于预先存在的代码,或者他们在黑客松期间开发了多少新代码。此外,我们的目标是了解代码是否以及在何处被重用,以及哪些因素影响重用。方法:我们从DEVPOST(一个黑客数据库)中收集了22,183个黑客项目的信息,并从World of Code中获得了相关的代码(blob)、作者和项目特征。我们通过识别原始blob创建日期和作者,调查了hackblob项目中的代码blob是在事件之前、期间还是之后创建的,并检查了原始作者是否是hackblob项目成员。我们跟踪代码重用的方法是,首先确定所有包含事件期间创建的blob的提交,然后再确定所有包含这些提交的项目。测试结果:虽然只有大约9.14%的代码blob是在黑客马拉松期间创建的,但考虑到此类活动的时间和成员限制,这一数量仍然很大。这些代码blob中大约有三分之一在其他项目中得到重用。相关技术的数量和项目参与者的数量增加了重用概率。结论:我们的研究展示了在黑客攻击过程中,在多大程度上使用了预先存在的代码和创建了新代码,以及有多少代码在之后的其他地方被重用。我们的研究结果有助于更好地理解代码重用作为一种现象和黑客松在这方面的作用,并可以作为在这一领域进一步研究的起点。
英文摘要:
Background: Hackathons have become popular events for teams to collaborate on projects and develop software prototypes. Most existing research focuses on activities during an event with limited attention to the evolution of the code brought to or created during a hackathon. Aim: We aim to understand the evolution of hackathon-related code, specifically, how much hackathon teams rely on pre-existing code or how much new code they develop during a hackathon. Moreover, we aim to understand if and where that code gets reused, and what factors affect reuse. Method: We collected information about 22,183 hackathon projects from DEVPOST -- a hackathon database -- and obtained related code (blobs), authors, and project characteristics from the World of Code. We investigated if code blobs in hackathon projects were created before, during, or after an event by identifying the original blob creation date and author, and also checked if the original author was a hackathon project member. We tracked code reuse by first identifying all commits containing blobs created during an event before determining all projects that contain those commits. Result: While only approximately 9.14% of the code blobs are created during hackathons, this amount is still significant considering the time and member constraints of such events. Approximately a third of these code blobs get reused in other projects. The number of associated technologies and the number of participants in a project increase reuse probability. Conclusion: Our study demonstrates to what extent pre-existing code is used and new code is created during a hackathon and how much of it is reused elsewhere afterwards. Our findings help to better understand code reuse as a phenomenon and the role of hackathons in this context and can serve as a starting point for further studies in this area.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。