The Hidden Cost of Code Completion: Understanding the Impact of the Recommendation-list Length on its Efficiency

被引:15
作者
Jin, Xianhao [1 ]
Servant, Francisco [1 ]
机构
[1] Virginia Tech, Blacksburg, VA 24061 USA
来源
2018 IEEE/ACM 15TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR) | 2018年
关键词
Code Completion; Cost; IntelliSense;
D O I
10.1145/3196398.3196474
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Automatic code completion is a useful and popular technique that software developers use to write code more effectively and efficiently. However, while the benefits of code completion are clear, its cost is yet not well understood. We hypothesize the existence of a hidden cost of code completion, which mostly impacts developers when code completion techniques produce long recommendations. We study this hidden cost of code completion by evaluating how the length of the recommendation list affects other factors that may cause inefficiencies in the process. We study how common long recommendations are, whether they often provide low-ranked correct items, whether they incur longer time to be assessed, and whether they were more prevalent when developers did not select any item in the list. In our study, we observe evidence for all these factors, confirming the existence of a hidden cost of code completion.
引用
收藏
页码:70 / 73
页数:4
相关论文
共 8 条
[1]   CSCC: Simple, Efficient, Context Sensitive Code Completion [J].
Asaduzzaman, Muhammad ;
Roy, Chanchal K. ;
Schneider, Kevin A. ;
Hou, Daqing .
2014 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2014, :71-80
[2]  
Ghafari M, 2017, 2017 IEEE 24TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), P555, DOI 10.1109/SANER.2017.7884674
[3]  
Jin Xianhao, 2018, HIDDEN COST CODE COM, DOI [10.5281/zenodo.1199697, DOI 10.5281/ZENODO.1199697]
[4]  
Proksch S., 2018, P 15 WORK C MIN SOFT
[5]   Evaluating the Evaluations of Code Recommender Systems: A Reality Check [J].
Proksch, Sebastian ;
Amann, Sven ;
Nadi, Sarah ;
Mezini, Mira .
2016 31ST IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2016, :111-121
[6]   Intelligent Code Completion with Bayesian Networks [J].
Proksch, Sebastian ;
Lerch, Johannes ;
Mezini, Mira .
ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2015, 25 (01)
[7]  
Raychev V, 2014, ACM SIGPLAN NOTICES, V49, P419, DOI [10.1145/2666356.2594321, 10.1145/2594291.2594321]
[8]   Improving code completion with program history [J].
Robbes, Romain ;
Lanza, Michele .
AUTOMATED SOFTWARE ENGINEERING, 2010, 17 (02) :181-212