arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2101.00756cs.SE
收藏

NCQ:为node.js开发人员提供代码重用支持

NCQ: Code reuse support for node.js developers

Brittany Reid, Marcelo d`Amorim, Markus Wagner, Christoph Treude

摘要:

代码重用是软件开发的重要组成部分。代码重用实践的采用在Node.js开发人员中尤其普遍。Node.js包管理器NPM索引了超过100万个包,开发人员经常寻找包来解决编程任务。由于软件包数量众多,选择合适的软件包既困难又耗时。为了提高通过第三方包大量重用代码的开发人员的生产力,我们提出了节点代码查询(NCQ),一个读取-评估-打印-循环环境,允许开发人员1)使用自然语言查询搜索NPM包,2)搜索与这些包相关的代码片段,3)自动纠正这些代码片段中的错误,4)快速设置新的环境来测试这些片段,以及5)在搜索和编辑模式之间转换。在两项共有20名参与者的用户研究中,我们发现参与者使用NCQ比基线方法更快地开始编程并更快地完成任务,并且他们喜欢搜索代码片段和包等功能。我们的研究结果表明,NCQ使Node.js开发人员在重用代码方面更有效率。

英文摘要:

Code reuse is an important part of software development. The adoption of code reuse practices is especially common among Node.js developers. The Node.js package manager, NPM, indexes over 1 Million packages and developers often seek out packages to solve programming tasks. Due to the vast number of packages, selecting the right package is difficult and time consuming. With the goal of improving productivity of developers that heavily reuse code through third-party packages, we present Node Code Query (NCQ), a Read-Eval-Print-Loop environment that allows developers to 1) search for NPM packages using natural language queries, 2) search for code snippets related to those packages, 3) automatically correct errors in these code snippets, 4) quickly setup new environments for testing those snippets, and 5) transition between search and editing modes. In two user studies with a total of 20 participants, we find that participants begin programming faster and conclude tasks faster with NCQ than with baseline approaches, and that they like, among other features, the search for code snippets and packages. Our results suggest that NCQ makes Node.js developers more efficient in reusing code.

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

↑