Title :
A cohesion metric approach to dividing source code into functional segments to improve maintainability
Author :
Yoshida, Norihiro ; Kinoshita, Masataka ; Iida, Hajimu
Author_Institution :
Grad. Sch. of Inf. Sci., Nara Inst. of Sci. & Technol., Nara, Japan
Abstract :
During software maintenance, understanding source code is one of time-consuming activities. Good programming practice suggests that programmers should insert blank lines to divide source code into functional segments, and a comment at the beginning of each functional segment. Those help developers to understand functional segmentation of source code, such as start and end points of each functional segment. Unfortunately, programmers do not always follow this practice. In this paper, we propose an approach to dividing source code into functional segments. Our approach uses cohesion metric for code portion to identify start and end points of each functional segment.
Keywords :
software maintenance; software metrics; cohesion metric approach; functional segment; programming practice; software maintenance; source code division; source code functional segmentation; source code understanding; Feature extraction; Measurement; Proposals; Proteins; Software maintenance; Syntactics;
Conference_Titel :
Software Maintenance and Reengineering (CSMR), 2012 16th European Conference on
Conference_Location :
Szeged
Print_ISBN :
978-1-4673-0984-4
DOI :
10.1109/CSMR.2012.45