Assessing Cognitive Complexity in Java-Based Object-Oriented Systems: Metrics and Tool Support

Autor: Crasso, M., Mateos, C., Zunino, A., Sanjay Misra, Polvorín, P.
Přispěvatelé: Supported by grant PICT-2012-0045 of ANPCyT (Argentina)
Jazyk: angličtina
Rok vydání: 2016
Předmět:
Zdroj: COMPUTING AND INFORMATICS; Vol 35, No 3 (2016): Computing and Informatics; 497-527
Scopus-Elsevier
ISSN: 1335-9150
Popis: Software cognitive complexity refers to how demanding the mental process of performing tasks such as coding, testing, debugging, or modifying source code is. Achieving low levels of cognitive complexity is crucial for ensuring high levels of software maintainability, which is one of the most rewardful software quality attributes. Therefore, in order to control and ensure software maintainability, it is first necessary to accurately quantify software cognitive complexity. In this line, this paper presents a software metric to assess cognitive complexity in Object-Oriented (OO) systems, and particularly those developed in the Java language, which is very popular among OO programming languages. The proposed metric is based on a characterization of basic control structures present in Java systems. Several algorithms to compute the metric and their materialization in the Eclipse IDE are also introduced. Finally, a theoretical validation of the metric against a framework specially designed to validate software complexity metrics is presented, and the applicability of the tool is shown by illustrating the metric in the context of ten real world Java projects and relevant metrics from the well-known Chidamber-Kemerer metric suite.
Databáze: OpenAIRE