首页 > 最新文献

2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)最新文献

英文 中文
Inheritance software metrics on smart contracts 智能合约上的继承软件指标
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389284
Ashish Rajendra Sai, Conor Holmes, J. Buckley, AndrewJ. L. Gear
Blockchain systems have gained substantial traction recently, partly due to the potential of decentralized immutable mediation of economic activities. Ethereum is a prominent example that has the provision for executing stateful computing scripts known as Smart Contracts. These smart contracts resemble traditional programs, but with immutability being the core differentiating factor. Given their immutability and potential high monetary value, it becomes imperative to develop high-quality smart contracts. Software metrics have traditionally been an essential tool in determining programming quality. Given the similarity between smart contracts (written in Solidity for Ethereum) and object-oriented (OO) programming, OO metrics would appear applicable. In this paper, we empirically evaluate inheritance-based metrics as applied to smart contracts. We adopt this focus because, traditionally, inheritance has been linked to a more complex codebase which we posit is not the case with Solidity based smart contracts. In this work, we evaluate the hypothesis that, due to the differences in the context of smart contracts and OO programs, it may not be appropriate to use the same interpretation of inheritance based metrics for assessment.
区块链系统最近获得了巨大的牵引力,部分原因是分散的不可变经济活动中介的潜力。以太坊是一个突出的例子,它提供执行被称为智能合约的有状态计算脚本。这些智能合约类似于传统程序,但不变性是其核心区别因素。鉴于它们的不可变性和潜在的高货币价值,开发高质量的智能合约变得势在必行。传统上,软件度量是决定编程质量的基本工具。鉴于智能合约(用Solidity为以太坊编写)和面向对象(OO)编程之间的相似性,OO指标似乎是适用的。在本文中,我们对应用于智能合约的基于继承的指标进行了经验评估。我们采用这一重点是因为,传统上,继承与更复杂的代码库相关联,而我们认为基于Solidity的智能合约并非如此。在这项工作中,我们评估了这样一个假设,即由于智能合约和OO程序上下文的差异,使用基于继承的相同解释进行评估可能不合适。
{"title":"Inheritance software metrics on smart contracts","authors":"Ashish Rajendra Sai, Conor Holmes, J. Buckley, AndrewJ. L. Gear","doi":"10.1145/3387904.3389284","DOIUrl":"https://doi.org/10.1145/3387904.3389284","url":null,"abstract":"Blockchain systems have gained substantial traction recently, partly due to the potential of decentralized immutable mediation of economic activities. Ethereum is a prominent example that has the provision for executing stateful computing scripts known as Smart Contracts. These smart contracts resemble traditional programs, but with immutability being the core differentiating factor. Given their immutability and potential high monetary value, it becomes imperative to develop high-quality smart contracts. Software metrics have traditionally been an essential tool in determining programming quality. Given the similarity between smart contracts (written in Solidity for Ethereum) and object-oriented (OO) programming, OO metrics would appear applicable. In this paper, we empirically evaluate inheritance-based metrics as applied to smart contracts. We adopt this focus because, traditionally, inheritance has been linked to a more complex codebase which we posit is not the case with Solidity based smart contracts. In this work, we evaluate the hypothesis that, due to the differences in the context of smart contracts and OO programs, it may not be appropriate to use the same interpretation of inheritance based metrics for assessment.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"20 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115793288","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 6
Exploiting Code Knowledge Graph for Bug Localization via Bi-directional Attention 利用代码知识图进行双向注意缺陷定位
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389281
Jinglei Zhang, Rui Xie, Wei Ye, Yuhan Zhang, Shikun Zhang
Bug localization automatic localize relevant source files given a natural language description of bug within a software project. For a large project containing hundreds and thousands of source files, developers need cost lots of time to understand bug reports generated by quality assurance and localize these buggy source files. Traditional methods are heavily depending on the information retrieval technologies which rank the similarity between source files and bug reports in lexical level. Recently, deep learning based models are used to extract semantic information of code with significant improvements for bug localization. However, programming language is a highly structural and logical language, which contains various relations within and cross source files. Thus, we propose KGBugLocator to utilize knowledge graph embeddings to extract these interrelations of code, and a keywords supervised bi-directional attention mechanism regularize model with interactive information between source files and bug reports. With extensive experiments on four different projects, we prove our model can reach the new the-state-of-art(SOTA) for bug localization.
Bug本地化在软件项目中给出Bug的自然语言描述,自动本地化相关的源文件。对于包含成百上千个源文件的大型项目,开发人员需要花费大量时间来理解由质量保证生成的错误报告,并对这些有错误的源文件进行本地化。传统的方法很大程度上依赖于信息检索技术,它在词法层面对源文件和bug报告之间的相似性进行排序。近年来,基于深度学习的模型被用于提取代码的语义信息,在bug定位方面有了很大的改进。然而,编程语言是一种高度结构化和逻辑性的语言,它包含源文件内部和跨源文件的各种关系。因此,我们提出了KGBugLocator,利用知识图嵌入来提取代码之间的相互关系,并提出了一个关键字监督的双向注意机制,将源文件和bug报告之间的交互信息规范化模型。通过在四个不同项目上的广泛实验,我们证明了我们的模型可以达到bug定位的最新状态(SOTA)。
{"title":"Exploiting Code Knowledge Graph for Bug Localization via Bi-directional Attention","authors":"Jinglei Zhang, Rui Xie, Wei Ye, Yuhan Zhang, Shikun Zhang","doi":"10.1145/3387904.3389281","DOIUrl":"https://doi.org/10.1145/3387904.3389281","url":null,"abstract":"Bug localization automatic localize relevant source files given a natural language description of bug within a software project. For a large project containing hundreds and thousands of source files, developers need cost lots of time to understand bug reports generated by quality assurance and localize these buggy source files. Traditional methods are heavily depending on the information retrieval technologies which rank the similarity between source files and bug reports in lexical level. Recently, deep learning based models are used to extract semantic information of code with significant improvements for bug localization. However, programming language is a highly structural and logical language, which contains various relations within and cross source files. Thus, we propose KGBugLocator to utilize knowledge graph embeddings to extract these interrelations of code, and a keywords supervised bi-directional attention mechanism regularize model with interactive information between source files and bug reports. With extensive experiments on four different projects, we prove our model can reach the new the-state-of-art(SOTA) for bug localization.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"241 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121482832","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 30
How do Students Experience and Judge Software Comprehension Techniques? 学生如何体验和判断软件理解技术?
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389283
R. Hebig, Truong Ho-Quang, Rodi Jolak, Jan Schröder, Humberto Linero, Magnus Ågren, Salome Maro
Today, there is a wide range of techniques to support software comprehension. However, we do not fully understand yet what techniques really help novices, to comprehend a software system. In this paper, we present a master level project course on software evolution, which has a large focus on software comprehension. We collected data about student's experience with diverse comprehension techniques during focus group discussions over the course of two years. Our results indicate that systematic code reading can be supported by additional techniques to guiding reading efforts. Most techniques are considered valuable for gaining an overview and some techniques are judged to be helpful only in later stages of software comprehension efforts.
今天,有很多技术支持软件理解。然而,我们还没有完全理解什么技术能够真正帮助新手理解软件系统。在本文中,我们提出了一门关于软件进化的硕士级项目课程,该课程主要关注软件理解。我们在两年的焦点小组讨论中收集了学生使用不同理解技巧的经验数据。我们的研究结果表明,系统的代码阅读可以通过额外的技术来指导阅读工作。大多数技术被认为对于获得概述是有价值的,而一些技术被认为仅在软件理解工作的后期阶段才有帮助。
{"title":"How do Students Experience and Judge Software Comprehension Techniques?","authors":"R. Hebig, Truong Ho-Quang, Rodi Jolak, Jan Schröder, Humberto Linero, Magnus Ågren, Salome Maro","doi":"10.1145/3387904.3389283","DOIUrl":"https://doi.org/10.1145/3387904.3389283","url":null,"abstract":"Today, there is a wide range of techniques to support software comprehension. However, we do not fully understand yet what techniques really help novices, to comprehend a software system. In this paper, we present a master level project course on software evolution, which has a large focus on software comprehension. We collected data about student's experience with diverse comprehension techniques during focus group discussions over the course of two years. Our results indicate that systematic code reading can be supported by additional techniques to guiding reading efforts. Most techniques are considered valuable for gaining an overview and some techniques are judged to be helpful only in later stages of software comprehension efforts.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"57 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"124016354","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 5
Detecting Code Comment Inconsistency using Siamese Recurrent Network 使用Siamese循环网络检测代码注释不一致
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389286
F. Rabbi, Md. Saeed Siddik
Comments are the internal documentation of corresponding code blocks, which are essential to understand and maintain a software. In large scale software development, developers need to analyze existing codes, where comments assist better readability. In practice, developers commonly ignore comments' updating with respect to changing codes, which leads the code comment inconsistency. Traditionally researchers detect these inconsistencies based on code-comment tokens. However, sequence ordering in codecomments is ignored in existing solution, as a result inconsistencies for invalid sequences of codes and comments are neglected. This paper solves these inconsistencies using siamese recurrent network which uses word tokens in codes and comments as well as their sequences in corresponding codes or comments. Proposed approach has been evaluated with a benchmark dataset, along with the ability of detecting invalid code comment sequence is examined.
注释是对应代码块的内部文档,对于理解和维护软件是必不可少的。在大规模的软件开发中,开发人员需要分析现有的代码,其中注释有助于提高可读性。在实践中,开发人员通常会忽略关于代码更改的注释更新,这导致代码注释不一致。传统上,研究人员基于代码注释标记来检测这些不一致。然而,在现有的解决方案中忽略了编码中的序列排序,因此忽略了无效代码和注释序列的不一致性。本文采用连体循环网络,在代码和注释中使用词标记及其在相应代码或注释中的序列,解决了这些不一致。用一个基准数据集对所提出的方法进行了评估,并检验了检测无效代码注释序列的能力。
{"title":"Detecting Code Comment Inconsistency using Siamese Recurrent Network","authors":"F. Rabbi, Md. Saeed Siddik","doi":"10.1145/3387904.3389286","DOIUrl":"https://doi.org/10.1145/3387904.3389286","url":null,"abstract":"Comments are the internal documentation of corresponding code blocks, which are essential to understand and maintain a software. In large scale software development, developers need to analyze existing codes, where comments assist better readability. In practice, developers commonly ignore comments' updating with respect to changing codes, which leads the code comment inconsistency. Traditionally researchers detect these inconsistencies based on code-comment tokens. However, sequence ordering in codecomments is ignored in existing solution, as a result inconsistencies for invalid sequences of codes and comments are neglected. This paper solves these inconsistencies using siamese recurrent network which uses word tokens in codes and comments as well as their sequences in corresponding codes or comments. Proposed approach has been evaluated with a benchmark dataset, along with the ability of detecting invalid code comment sequence is examined.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"22 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"126860989","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 10
A Model to Detect Readability Improvements in Incremental Changes 在增量变化中检测可读性改进的模型
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389255
Devjeet Roy, Sarah Fakhoury, John Lee, V. Arnaoudova
Identifying source code that has poor readability allows developers to focus maintenance efforts on problematic code. Therefore, the effort to develop models that can quantify the readability of a piece of source code has been an area of interest for software engineering researchers for several years. However, recent research questions the usefulness of these readability models in practice. When applying these models to readability improvements that are made in practice, i.e., commits, they are unable to capture these incremental improvements, despite a clear perceived improvement by the developers. This results in a discrepancy between the models we have built to measure readability, and the actual perception of readability in practice. In this work, we propose a model that is able to detect incremental readability improvements made by developers in practice with an average precision of 79.2% and an average recall of 67% on an unseen test set. We then investigate the metrics that our model associates with developer perceived readability improvements as well as non-readability changes. Finally, we compare our model to existing state-of-the-art readability models, which our model outperforms by at least 23% in terms of precision and 42% in terms of recall.
识别可读性差的源代码允许开发人员将维护工作集中在有问题的代码上。因此,几年来,开发能够量化源代码可读性的模型一直是软件工程研究人员感兴趣的领域。然而,最近的研究质疑这些可读性模型在实践中的实用性。当将这些模型应用于实践中所做的可读性改进时,即提交时,它们无法捕获这些增量改进,尽管开发人员清楚地感知到改进。这就导致了我们所建立的可读性测量模型与实践中对可读性的实际感知之间的差异。在这项工作中,我们提出了一个能够检测开发人员在实践中所做的增量可读性改进的模型,在未见过的测试集上,平均精度为79.2%,平均召回率为67%。然后,我们研究了我们的模型与开发人员感知到的可读性改进以及非可读性变化相关联的度量。最后,我们将我们的模型与现有的最先进的可读性模型进行比较,我们的模型在精度方面至少优于23%,在召回率方面优于42%。
{"title":"A Model to Detect Readability Improvements in Incremental Changes","authors":"Devjeet Roy, Sarah Fakhoury, John Lee, V. Arnaoudova","doi":"10.1145/3387904.3389255","DOIUrl":"https://doi.org/10.1145/3387904.3389255","url":null,"abstract":"Identifying source code that has poor readability allows developers to focus maintenance efforts on problematic code. Therefore, the effort to develop models that can quantify the readability of a piece of source code has been an area of interest for software engineering researchers for several years. However, recent research questions the usefulness of these readability models in practice. When applying these models to readability improvements that are made in practice, i.e., commits, they are unable to capture these incremental improvements, despite a clear perceived improvement by the developers. This results in a discrepancy between the models we have built to measure readability, and the actual perception of readability in practice. In this work, we propose a model that is able to detect incremental readability improvements made by developers in practice with an average precision of 79.2% and an average recall of 67% on an unseen test set. We then investigate the metrics that our model associates with developer perceived readability improvements as well as non-readability changes. Finally, we compare our model to existing state-of-the-art readability models, which our model outperforms by at least 23% in terms of precision and 42% in terms of recall.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"96 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129897041","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 5
How Does Incomplete Composite Refactoring Affect Internal Quality Attributes? 不完全复合重构如何影响内部质量属性?
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389264
Ana Carla Bibiano, Vinícius Soares, Daniel Coutinho, Eduardo Fernandes, J. Correia, Kleber Santos, Anderson Oliveira, Alessandro F. Garcia, Rohit Gheyi, B. Neto, Márcio Ribeiro, Caio Barbosa, Daniel Oliveira
Program refactoring consists of code changes applied to improve the internal structure of a program and, as a consequence, its comprehensibility. Recent studies indicate that developers often perform composite refactorings, i.e., a set of two or more interrelated single refactorings. Recent studies also recommend certain patterns of composite refactorings to fully remove poor code structures, i.e, code smells, thus further improving the program comprehension. However, other recent studies report that composite refactorings often fail to fully remove code smells. Given their failure to achieve this purpose, these composite refactorings are considered incomplete, i.e, they are not able to entirely remove a smelly structure. Unfortunately, there is no study providing an in-depth analysis of the incompleteness nature of many composites and their possibly partial impact on improving, maybe decreasing, internal quality attributes. This paper identifies the most common forms of incomplete composites, and their effect on quality attributes, such as coupling and cohesion, which are known to have an impact on program comprehension. We analyzed 353 incomplete composite refactorings in 5 software projects, two common code smells (Feature Envy and God Class), and four internal quality attributes. Our results reveal that incomplete composite refactorings with at least one Extract Method are often (71%) applied without Move Methods on smelly classes. We have also found that most incomplete composite refactorings (58%) tended to at least maintain the internal structural quality of smelly classes, thereby not causing more harm to program comprehension. We also discuss the implications of our findings to the research and practice of composite refactoring.
程序重构包括应用于改进程序内部结构的代码更改,从而提高程序的可理解性。最近的研究表明,开发人员经常执行复合重构,即一组两个或多个相互关联的单个重构。最近的研究还推荐了复合重构的某些模式,以完全消除不良的代码结构,即代码气味,从而进一步提高程序的可理解性。然而,最近的其他研究报告称,复合重构常常不能完全消除代码异味。考虑到它们未能实现这一目的,这些复合重构被认为是不完整的,也就是说,它们不能完全去除有问题的结构。遗憾的是,目前还没有研究对许多复合材料的不完整性及其对改善或降低内部质量属性可能产生的部分影响进行深入分析。本文确定了最常见的不完全复合形式,以及它们对质量属性的影响,例如耦合和内聚,这些属性已知会对程序理解产生影响。我们分析了5个软件项目中的353个不完整的复合重构,两种常见的代码气味(Feature Envy和God Class),以及4个内部质量属性。我们的结果表明,至少有一个提取方法的不完全复合重构通常(71%)在没有移动方法的情况下应用于有臭味的类。我们还发现,大多数不完整的复合重构(58%)倾向于至少维持臭类的内部结构质量,从而不会对程序的理解造成更大的损害。我们还讨论了我们的发现对复合重构的研究和实践的意义。
{"title":"How Does Incomplete Composite Refactoring Affect Internal Quality Attributes?","authors":"Ana Carla Bibiano, Vinícius Soares, Daniel Coutinho, Eduardo Fernandes, J. Correia, Kleber Santos, Anderson Oliveira, Alessandro F. Garcia, Rohit Gheyi, B. Neto, Márcio Ribeiro, Caio Barbosa, Daniel Oliveira","doi":"10.1145/3387904.3389264","DOIUrl":"https://doi.org/10.1145/3387904.3389264","url":null,"abstract":"Program refactoring consists of code changes applied to improve the internal structure of a program and, as a consequence, its comprehensibility. Recent studies indicate that developers often perform composite refactorings, i.e., a set of two or more interrelated single refactorings. Recent studies also recommend certain patterns of composite refactorings to fully remove poor code structures, i.e, code smells, thus further improving the program comprehension. However, other recent studies report that composite refactorings often fail to fully remove code smells. Given their failure to achieve this purpose, these composite refactorings are considered incomplete, i.e, they are not able to entirely remove a smelly structure. Unfortunately, there is no study providing an in-depth analysis of the incompleteness nature of many composites and their possibly partial impact on improving, maybe decreasing, internal quality attributes. This paper identifies the most common forms of incomplete composites, and their effect on quality attributes, such as coupling and cohesion, which are known to have an impact on program comprehension. We analyzed 353 incomplete composite refactorings in 5 software projects, two common code smells (Feature Envy and God Class), and four internal quality attributes. Our results reveal that incomplete composite refactorings with at least one Extract Method are often (71%) applied without Move Methods on smelly classes. We have also found that most incomplete composite refactorings (58%) tended to at least maintain the internal structural quality of smelly classes, thereby not causing more harm to program comprehension. We also discuss the implications of our findings to the research and practice of composite refactoring.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"39 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115165133","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 13
Performing Tasks Can Improve Program Comprehension Mental Model of Novice Developers: An Empirical Approach 执行任务可以提高新手开发人员的程序理解心理模型:一种实证方法
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389277
Amal A. Al-Shargabi, S. A. Aljunid, Muthukkaruppan Annamalai, A. Zin
Program comprehension is challenging for many novice developers. Literature indicates that program comprehension is greatly influenced by the specific purpose of reading a program, i.e., the task. However, the task has often been used in research as a measure for program comprehension. Our study takes an inverse approach to investigate the effect of using the task as a facilitator to improve novice developers program comprehension. To measure the effect, our previously published program comprehension mental model of novice developers was utilized. In a sense, the study provides an empirical evaluation of our proposed model in terms of its ability to capture the novice developer's mental model properly. The comprehensive experiment involved one hundred and seventy-eight (178) novice developers from three (3) universities and investigated the effect of six (6) tasks with difficulties ranked according to the cognitive categories of Revised Bloom Taxonomy. The results of the experiment confirmed that performing the tasks can improve program comprehension of novice developers. It demonstrated that different tasks improved different abstraction levels of the mental model and further indicated that higher cognitive category tasks improve program comprehension mental model at higher abstraction levels. The results also showed that the mental model we have proposed earlier is able to capture what novice developers know in response to the tasks they perform. The general implication of the study is that the tasks can be an effective tool for computing educators to incorporate program comprehension in programming courses, whereby these tasks need to be introduced in stages in the teaching of programming; starting initially from the lower cognitive categories' tasks such as Recall and culminating at the higher cognitive categories' tasks such as Modification by first taking into consideration the novices' programming levels.
程序理解对许多新手开发人员来说是一个挑战。文献表明,程序理解在很大程度上受到阅读程序的特定目的,即任务的影响。然而,该任务在研究中经常被用作程序理解的衡量标准。我们的研究采用相反的方法来调查使用任务作为促进器来提高新手开发人员程序理解的效果。为了测量效果,我们使用了我们之前发表的新手开发人员的程序理解心理模型。从某种意义上说,这项研究提供了对我们提出的模型的经验评估,就其正确捕获新手开发人员心理模型的能力而言。这项综合实验涉及了来自三所大学的178名开发新手,并根据修订的Bloom分类法的认知类别,调查了6项难度排序任务的效果。实验结果证实,执行这些任务可以提高新手开发人员的程序理解能力。结果表明,不同的任务对心智模型抽象层次的改善程度不同,并进一步表明,较高的认知类别任务对较高抽象层次的程序理解心智模型有改善作用。结果还表明,我们之前提出的心智模型能够捕获新手开发人员对他们执行的任务的响应。这项研究的一般含义是,任务可以成为计算教育者将程序理解纳入编程课程的有效工具,因此这些任务需要在编程教学中分阶段引入;从较低认知类别的任务(如回忆)开始,最终达到较高认知类别的任务(如修改),首先考虑新手的编程水平。
{"title":"Performing Tasks Can Improve Program Comprehension Mental Model of Novice Developers: An Empirical Approach","authors":"Amal A. Al-Shargabi, S. A. Aljunid, Muthukkaruppan Annamalai, A. Zin","doi":"10.1145/3387904.3389277","DOIUrl":"https://doi.org/10.1145/3387904.3389277","url":null,"abstract":"Program comprehension is challenging for many novice developers. Literature indicates that program comprehension is greatly influenced by the specific purpose of reading a program, i.e., the task. However, the task has often been used in research as a measure for program comprehension. Our study takes an inverse approach to investigate the effect of using the task as a facilitator to improve novice developers program comprehension. To measure the effect, our previously published program comprehension mental model of novice developers was utilized. In a sense, the study provides an empirical evaluation of our proposed model in terms of its ability to capture the novice developer's mental model properly. The comprehensive experiment involved one hundred and seventy-eight (178) novice developers from three (3) universities and investigated the effect of six (6) tasks with difficulties ranked according to the cognitive categories of Revised Bloom Taxonomy. The results of the experiment confirmed that performing the tasks can improve program comprehension of novice developers. It demonstrated that different tasks improved different abstraction levels of the mental model and further indicated that higher cognitive category tasks improve program comprehension mental model at higher abstraction levels. The results also showed that the mental model we have proposed earlier is able to capture what novice developers know in response to the tasks they perform. The general implication of the study is that the tasks can be an effective tool for computing educators to incorporate program comprehension in programming courses, whereby these tasks need to be introduced in stages in the teaching of programming; starting initially from the lower cognitive categories' tasks such as Recall and culminating at the higher cognitive categories' tasks such as Modification by first taking into consideration the novices' programming levels.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"33 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123919601","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 3
An Empirical Study on Critical Blocking Bugs 关键阻塞缺陷的实证研究
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389267
Hao Ren, Yanhui Li, Lin Chen
Blocking bugs are a severe type of bugs that prevent other bugs from being fixed. As software becomes increasingly complex and large, blocking bugs occur in many large-scale software, especially in software ecosystems. Blocking bugs may have a high negative impact on software development and maintenance. Usually, blocking bugs preventing more bugs should be more concerned. In this paper, we focus on a special type of blocking bugs that block at least two bugs, which we call Critical Blocking Bugs (CBBs). We study CBBs from the following five aspects: the importance, the repair time, the scale of repair, the experience of developers who repair CBBs, and the circumstance why CBBs block multiple bugs. We build a dataset containing five open source projects and classify bugs into three types (i.e., critical blocking bugs, normal blocking bugs and other bugs, which block at least two, just one and zero bugs, respectively) to compare the differences between CBBs and other types of bugs. The experimental results show that CBBs are more important with longer repair time and larger repair scale, and CBBs are concentrated on parts of components of the project. These results highlight that CBBs are different from other types of bugs in many aspects, and we should pay more attention to such bugs in the future software maintenance process.
阻塞错误是一种严重的错误,它阻止其他错误被修复。随着软件的日益复杂和庞大,许多大型软件,特别是软件生态系统中都出现了阻塞错误。阻止错误可能会对软件开发和维护产生很大的负面影响。通常,应该更关注阻止bug,防止更多的bug。在本文中,我们关注一种特殊类型的阻塞错误,它至少阻塞两个错误,我们称之为临界阻塞错误(cbb)。我们从以下五个方面研究cbb:重要性,修复时间,修复规模,修复cbb的开发人员的经验,以及cbb阻止多个bug的情况。我们构建了一个包含五个开源项目的数据集,并将bug分为三种类型(即关键阻塞bug,正常阻塞bug和其他bug,分别阻塞至少两个,只有一个和零个bug),以比较cbb与其他类型的bug之间的差异。实验结果表明,修复时间越长、修复规模越大,修复过程中CBBs的作用越重要,且CBBs主要集中在工程部件的部分。这些结果凸显了cbb在很多方面与其他类型的bug不同,我们在未来的软件维护过程中应该更加重视这类bug。
{"title":"An Empirical Study on Critical Blocking Bugs","authors":"Hao Ren, Yanhui Li, Lin Chen","doi":"10.1145/3387904.3389267","DOIUrl":"https://doi.org/10.1145/3387904.3389267","url":null,"abstract":"Blocking bugs are a severe type of bugs that prevent other bugs from being fixed. As software becomes increasingly complex and large, blocking bugs occur in many large-scale software, especially in software ecosystems. Blocking bugs may have a high negative impact on software development and maintenance. Usually, blocking bugs preventing more bugs should be more concerned. In this paper, we focus on a special type of blocking bugs that block at least two bugs, which we call Critical Blocking Bugs (CBBs). We study CBBs from the following five aspects: the importance, the repair time, the scale of repair, the experience of developers who repair CBBs, and the circumstance why CBBs block multiple bugs. We build a dataset containing five open source projects and classify bugs into three types (i.e., critical blocking bugs, normal blocking bugs and other bugs, which block at least two, just one and zero bugs, respectively) to compare the differences between CBBs and other types of bugs. The experimental results show that CBBs are more important with longer repair time and larger repair scale, and CBBs are concentrated on parts of components of the project. These results highlight that CBBs are different from other types of bugs in many aspects, and we should pay more attention to such bugs in the future software maintenance process.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"102 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"124337573","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 3
UI Screens Identification and Extraction from Mobile Programming Screencasts 从移动编程视频中识别和提取UI屏幕
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389265
Mohammad D. Alahmadi, Abdulkarim Khormi, S. Haiduc
Mobile applications demand is on the rise, leading to more programmers learning to develop or having to maintain this kind of programs. Developers often refer to online resources to find inspiration or answers to questions they have about mobile programming topics and screencasts are a popular resource. However, given the multitude of screencasts available, it can be difficult to quickly comprehend which of the many videos is relevant to one's needs. We propose a novel approach, called UIScreens, which detects, extracts, and presents the most representative user interface (UI) screens embedded in mobile development screencasts. This could help developers quickly comprehend what an app displayed in a video is about, therefore saving time searching for useful videos. UIScreens has been evaluated in two empirical studies on iOS and Android programming screencasts. The first study investigates the accuracy of our UI extraction and shows that our approach is able to detect and extract UI screens with an accuracy of 94%. The second is a user study with mobile app developers, who evaluated both the accuracy and the usefulness of UI Screens. They agreed that UIScreens is accurate and extracts representative UI screens from videos. They considered that the extracted UI screens are useful for understanding what a video is about and if it is relevant to a search. Our approach has been implemented as a free online tool.
移动应用程序的需求正在上升,导致更多的程序员学习开发或维护这类程序。开发人员经常参考在线资源来寻找灵感或回答他们关于移动编程主题的问题,屏幕视频是一种受欢迎的资源。然而,考虑到大量可用的视频,很难快速理解哪些视频与自己的需求相关。我们提出了一种新颖的方法,称为UIScreens,它可以检测,提取并呈现嵌入在移动开发屏幕中的最具代表性的用户界面(UI)屏幕。这可以帮助开发人员快速理解视频中显示的应用程序的内容,从而节省搜索有用视频的时间。UIScreens在两项针对iOS和Android编程视频的实证研究中进行了评估。第一项研究调查了我们的UI提取的准确性,并表明我们的方法能够以94%的准确率检测和提取UI屏幕。第二种是手机应用开发者的用户研究,他们评估UI屏幕的准确性和有用性。他们一致认为UIScreens是准确的,可以从视频中提取有代表性的UI屏幕。他们认为,提取出来的UI屏幕有助于理解视频的内容,以及它是否与搜索相关。我们的方法已经作为一个免费的在线工具实现了。
{"title":"UI Screens Identification and Extraction from Mobile Programming Screencasts","authors":"Mohammad D. Alahmadi, Abdulkarim Khormi, S. Haiduc","doi":"10.1145/3387904.3389265","DOIUrl":"https://doi.org/10.1145/3387904.3389265","url":null,"abstract":"Mobile applications demand is on the rise, leading to more programmers learning to develop or having to maintain this kind of programs. Developers often refer to online resources to find inspiration or answers to questions they have about mobile programming topics and screencasts are a popular resource. However, given the multitude of screencasts available, it can be difficult to quickly comprehend which of the many videos is relevant to one's needs. We propose a novel approach, called UIScreens, which detects, extracts, and presents the most representative user interface (UI) screens embedded in mobile development screencasts. This could help developers quickly comprehend what an app displayed in a video is about, therefore saving time searching for useful videos. UIScreens has been evaluated in two empirical studies on iOS and Android programming screencasts. The first study investigates the accuracy of our UI extraction and shows that our approach is able to detect and extract UI screens with an accuracy of 94%. The second is a user study with mobile app developers, who evaluated both the accuracy and the usefulness of UI Screens. They agreed that UIScreens is accurate and extracts representative UI screens from videos. They considered that the extracted UI screens are useful for understanding what a video is about and if it is relevant to a search. Our approach has been implemented as a free online tool.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"18 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121144084","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 6
Supporting Program Comprehension through Fast Query response in Large-Scale Systems 通过大规模系统中的快速查询响应支持程序理解
Pub Date : 2020-07-13 DOI: 10.1145/3387904.3389260
Jinfeng Lin, Yalin Liu, J. Cleland-Huang
Software traceability provides support for various engineering activities including Program Comprehension; however, it can be challenging and arduous to complete in large industrial projects. Researchers have proposed automated traceability techniques to create, maintain and leverage trace links. Computationally intensive techniques, such as repository mining and deep learning, have showed the capability to deliver accurate trace links. The objective of achieving trusted, automated tracing techniques at industrial scale has not yet been successfully accomplished due to practical performance challenges. This paper evaluates high-performance solutions for deploying effective, computationally expensive traceability algorithms in large scale industrial projects and leverages generated trace links to answer Program Comprehension Queries. We comparatively evaluate four different platforms for supporting industrial-scale tracing solutions, capable of tackling software projects with millions of artifacts. We demonstrate that tracing solutions built using big data frameworks scale well for large projects and that our Spark implementation outperforms relational database, graph database (GraphDB), and plain Java implementations. These findings contradict earlier results which suggested that GraphDB solutions should be adopted for large-scale tracing problems.
软件可追溯性为包括程序理解在内的各种工程活动提供支持;然而,在大型工业项目中完成它可能是具有挑战性和艰巨的。研究人员提出了自动跟踪技术来创建、维护和利用跟踪链接。计算密集型技术,如存储库挖掘和深度学习,已经显示出提供准确跟踪链接的能力。由于实际性能方面的挑战,在工业规模上实现可信的自动跟踪技术的目标尚未成功完成。本文评估了在大规模工业项目中部署有效的、计算昂贵的可追溯性算法的高性能解决方案,并利用生成的跟踪链接来回答程序理解查询。我们比较地评估了四种不同的平台,以支持工业规模的跟踪解决方案,能够处理具有数百万工件的软件项目。我们证明了使用大数据框架构建的跟踪解决方案可以很好地扩展到大型项目,并且我们的Spark实现优于关系数据库、图形数据库(GraphDB)和普通Java实现。这些发现与早期的结果相矛盾,后者认为应该采用GraphDB解决方案来解决大规模跟踪问题。
{"title":"Supporting Program Comprehension through Fast Query response in Large-Scale Systems","authors":"Jinfeng Lin, Yalin Liu, J. Cleland-Huang","doi":"10.1145/3387904.3389260","DOIUrl":"https://doi.org/10.1145/3387904.3389260","url":null,"abstract":"Software traceability provides support for various engineering activities including Program Comprehension; however, it can be challenging and arduous to complete in large industrial projects. Researchers have proposed automated traceability techniques to create, maintain and leverage trace links. Computationally intensive techniques, such as repository mining and deep learning, have showed the capability to deliver accurate trace links. The objective of achieving trusted, automated tracing techniques at industrial scale has not yet been successfully accomplished due to practical performance challenges. This paper evaluates high-performance solutions for deploying effective, computationally expensive traceability algorithms in large scale industrial projects and leverages generated trace links to answer Program Comprehension Queries. We comparatively evaluate four different platforms for supporting industrial-scale tracing solutions, capable of tackling software projects with millions of artifacts. We demonstrate that tracing solutions built using big data frameworks scale well for large projects and that our Spark implementation outperforms relational database, graph database (GraphDB), and plain Java implementations. These findings contradict earlier results which suggested that GraphDB solutions should be adopted for large-scale tracing problems.","PeriodicalId":231095,"journal":{"name":"2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)","volume":"18 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2020-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"131117623","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 2
期刊
2020 IEEE/ACM 28th International Conference on Program Comprehension (ICPC)
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1