arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.14616cs.SE
收藏

GitHub 模板仓库:服务领域、维护与从业者指南

GitHub Template Repositories: Served Domains, Maintenance, and Practitioner Guidelines

Polytechnique Montréal(蒙特利尔理工学院);Centro de Informática, Universidade Federal de Pernambuco(伯南布哥联邦大学信息学中心)

Leuson Da Silva, Altaf Allah Abbassi, Imen Trabelsi, Paulo Borba, Foutse Khomh

AI总结:

通过对五种主流编程语言的 GitHub 模板仓库进行大规模实证研究,分析了模板的服务领域、维护特征及质量问题,并提出了设计和管理模板的实用指南。

摘要:

随着时间的推移,GitHub 引入了不同的策略来共享可重用的代码工件。除了基于 fork 的重用之外,模板仓库提供了一种独特的功能,可以从脚手架生成新项目。尽管该功能自 2019 年以来就已可用,但对其支持的领域、维护特性或指导从业者进行有效模板设计的实践知之甚少。为了解决这一空白,我们对五种最常用编程语言的 GitHub 模板仓库进行了大规模实证研究。首先,我们挖掘并分类模板以分析其服务的领域,探索了 LLM-as-a-judge 策略。接下来,我们通过统计分析评估仓库特征与活动、质量相关问题(如代码异味、漏洞和安全热点)之间的关联,探索模板的可靠性。最后,我们定性分析了一个代表性的模板子集,以推导出模板设计和管理中的实用指南和常见陷阱。我们的结果表明,Web 开发是跨生态系统的主要领域,而维护和质量问题因编程语言而异。我们进一步发现,高质量的模板倾向于采用成熟的软件工程实践,同时提供全面的文档和清晰的使用指南。总体而言,我们的研究结果为从业者设计和采用高质量的模板仓库提供了实证见解和可操作的指导。

英文摘要:

Over time, GitHub has introduced different strategies for sharing reusable code artifacts. In addition to fork-based reuse, template repositories provide a distinct feature for generating new projects from scaffolding. Although this feature has been available since 2019, little is known about the domains it supports, its maintenance characteristics, or the practices that guide practitioners for effective template design. To address this gap, we conduct a large-scale empirical study of GitHub template repositories across the five most used programming languages. First, we mine and categorize templates to analyze the domains they serve, exploring the LLM-as-a-judge strategy. Next, we explore the reliability of templates by evaluating the associations between repository characteristics and activity, and quality-related issues (e.g., code smells, vulnerabilities, and security hotspots) through statistical analysis. Finally, we qualitatively analyze a representative subset of templates to derive practical guidelines and recurring pitfalls for template design and management. Our results show that Web Development is the predominant domain across ecosystems, while maintenance and quality issues vary by programming language. We further find that high-quality templates tend to adopt established software engineering practices, while providing comprehensive documentation and clear guidance for use. Overall, our findings offer empirical insights and actionable guidance to support practitioners in designing and adopting high-quality template repositories.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑