Hidden dependencies in program comprehension and change propagation

Author(s):  
Zhifeng Yu ◽  
V. Rajlich
1998 ◽  
Vol 27 (3) ◽  
pp. 22-27 ◽  
Author(s):  
Timothy Griffin ◽  
Bharat Kumar
Keyword(s):  

2021 ◽  
Vol 26 (6) ◽  
Author(s):  
Pooja Rani ◽  
Sebastiano Panichella ◽  
Manuel Leuenberger ◽  
Mohammad Ghafari ◽  
Oscar Nierstrasz

Abstract Context Previous studies have characterized code comments in various programming languages, showing how high quality of code comments is crucial to support program comprehension activities, and to improve the effectiveness of maintenance tasks. However, very few studies have focused on understanding developer practices to write comments. None of them has compared such developer practices to the standard comment guidelines to study the extent to which developers follow the guidelines. Objective Therefore, our goal is to investigate developer commenting practices and compare them to the comment guidelines. Method This paper reports the first empirical study investigating commenting practices in Pharo Smalltalk. First, we analyze class comment evolution over seven Pharo versions. Then, we quantitatively and qualitatively investigate the information types embedded in class comments. Finally, we study the adherence of developer commenting practices to the official class comment template over Pharo versions. Results Our results show that there is a rapid increase in class comments in the initial three Pharo versions, while in subsequent versions developers added comments to both new and old classes, thus maintaining a similar code to comment ratio. We furthermore found three times as many information types in class comments as those suggested by the template. However, the information types suggested by the template tend to be present more often than other types of information. Additionally, we find that a substantial proportion of comments follow the writing style of the template in writing these information types, but they are written and formatted in a non-uniform way. Conclusion The results suggest the need to standardize the commenting guidelines for formatting the text, and to provide headers for the different information types to ensure a consistent style and to identify the information easily. Given the importance of high-quality code comments, we draw numerous implications for developers and researchers to improve the support for comment quality assessment tools.


2015 ◽  
Vol 35 (3) ◽  
pp. 269-280 ◽  
Author(s):  
Hu Qiao ◽  
Rong Mo ◽  
Ying Xiang

Purpose – The purpose of this paper is to establish an adaptive assembly, to realize the adaptive changing of the models and to improve the flexibility and reliability of assembly change. For a three-dimensional (3D) computer-aided design (CAD) assembly in a changing process, there are two practical problems. One is delivering parameters’ information not smoothly. The other one is to easily destroy an assembly structure. Design/methodology/approach – The paper establishes associated parameters design structure matrix of related parts, and predicts possible propagation paths of the parameters. Based on the predicted path, structured storage is made for the affected parameters, tolerance range and the calculation relations. The study combines structured path information and all constrained assemblies to build the adaptive assembly, proposes an adaptive change algorithm for assembly changing and discusses the extendibility of the adaptive assembly. Findings – The approach would improve the flexibility and reliability of assembly change and be applied to different CAD platform. Practical implications – The examples illustrate the construction and adaptive behavior of the assembly and verify the feasibility and reasonability of the adaptive assembly in practical application. Originality/value – The adaptive assembly model proposed in the paper is an original method to assembly change. And compared with other methods, good results have been obtained.


Sign in / Sign up

Export Citation Format

Share Document