Tampere University of Technology

TUTCRIS Research Portal

How developers perceive smells in source code: A replicated study

Research output: Contribution to journalArticleScientificpeer-review

Standard

How developers perceive smells in source code : A replicated study. / Taibi, Davide; Janes, Andrea; Lenarduzzi, Valentina.

In: Information and Software Technology, Vol. 92, 01.12.2017, p. 223-235.

Research output: Contribution to journalArticleScientificpeer-review

Harvard

Taibi, D, Janes, A & Lenarduzzi, V 2017, 'How developers perceive smells in source code: A replicated study', Information and Software Technology, vol. 92, pp. 223-235. https://doi.org/10.1016/j.infsof.2017.08.008

APA

Taibi, D., Janes, A., & Lenarduzzi, V. (2017). How developers perceive smells in source code: A replicated study. Information and Software Technology, 92, 223-235. https://doi.org/10.1016/j.infsof.2017.08.008

Vancouver

Taibi D, Janes A, Lenarduzzi V. How developers perceive smells in source code: A replicated study. Information and Software Technology. 2017 Dec 1;92:223-235. https://doi.org/10.1016/j.infsof.2017.08.008

Author

Taibi, Davide ; Janes, Andrea ; Lenarduzzi, Valentina. / How developers perceive smells in source code : A replicated study. In: Information and Software Technology. 2017 ; Vol. 92. pp. 223-235.

Bibtex - Download

@article{e847ccc14cdd4d08bbfd7c1aee43264d,
title = "How developers perceive smells in source code: A replicated study",
abstract = "Context. In recent years, smells, also referred to as bad smells, have gained popularity among developers. However, it is still not clear how harmful they are perceived from the developers’ point of view. Many developers talk about them, but only few know what they really are, and even fewer really take care of them in their source code. Objective. The goal of this work is to understand the perceived criticality of code smells both in theory, when reading their description, and in practice. Method. We executed an empirical study as a differentiated external replication of two previous studies. The studies were conducted as surveys involving only highly experienced developers (63 in the first study and 41 in the second one). First the perceived criticality was analyzed by proposing the description of the smells, then different pieces of code infected by the smells were proposed, and finally their ability to identify the smells in the analyzed code was tested. Results. According to our knowledge, this is the largest study so far investigating the perception of code smells with professional software developers. The results show that developers are very concerned about code smells in theory, nearly always considering them as harmful or very harmful (17 out of 23 smells). However, when they were asked to analyze an infected piece of code, only few infected classes were considered harmful and even fewer were considered harmful because of the smell. Conclusions. The results confirm our initial hypotheses that code smells are perceived as more critical in theory but not as critical in practice.",
keywords = "Antipatterns, Bad smells, Code smells, Refactoring, Software maintenance",
author = "Davide Taibi and Andrea Janes and Valentina Lenarduzzi",
year = "2017",
month = "12",
day = "1",
doi = "10.1016/j.infsof.2017.08.008",
language = "English",
volume = "92",
pages = "223--235",
journal = "Information and Software Technology",
issn = "0950-5849",
publisher = "Elsevier",

}

RIS (suitable for import to EndNote) - Download

TY - JOUR

T1 - How developers perceive smells in source code

T2 - A replicated study

AU - Taibi, Davide

AU - Janes, Andrea

AU - Lenarduzzi, Valentina

PY - 2017/12/1

Y1 - 2017/12/1

N2 - Context. In recent years, smells, also referred to as bad smells, have gained popularity among developers. However, it is still not clear how harmful they are perceived from the developers’ point of view. Many developers talk about them, but only few know what they really are, and even fewer really take care of them in their source code. Objective. The goal of this work is to understand the perceived criticality of code smells both in theory, when reading their description, and in practice. Method. We executed an empirical study as a differentiated external replication of two previous studies. The studies were conducted as surveys involving only highly experienced developers (63 in the first study and 41 in the second one). First the perceived criticality was analyzed by proposing the description of the smells, then different pieces of code infected by the smells were proposed, and finally their ability to identify the smells in the analyzed code was tested. Results. According to our knowledge, this is the largest study so far investigating the perception of code smells with professional software developers. The results show that developers are very concerned about code smells in theory, nearly always considering them as harmful or very harmful (17 out of 23 smells). However, when they were asked to analyze an infected piece of code, only few infected classes were considered harmful and even fewer were considered harmful because of the smell. Conclusions. The results confirm our initial hypotheses that code smells are perceived as more critical in theory but not as critical in practice.

AB - Context. In recent years, smells, also referred to as bad smells, have gained popularity among developers. However, it is still not clear how harmful they are perceived from the developers’ point of view. Many developers talk about them, but only few know what they really are, and even fewer really take care of them in their source code. Objective. The goal of this work is to understand the perceived criticality of code smells both in theory, when reading their description, and in practice. Method. We executed an empirical study as a differentiated external replication of two previous studies. The studies were conducted as surveys involving only highly experienced developers (63 in the first study and 41 in the second one). First the perceived criticality was analyzed by proposing the description of the smells, then different pieces of code infected by the smells were proposed, and finally their ability to identify the smells in the analyzed code was tested. Results. According to our knowledge, this is the largest study so far investigating the perception of code smells with professional software developers. The results show that developers are very concerned about code smells in theory, nearly always considering them as harmful or very harmful (17 out of 23 smells). However, when they were asked to analyze an infected piece of code, only few infected classes were considered harmful and even fewer were considered harmful because of the smell. Conclusions. The results confirm our initial hypotheses that code smells are perceived as more critical in theory but not as critical in practice.

KW - Antipatterns

KW - Bad smells

KW - Code smells

KW - Refactoring

KW - Software maintenance

U2 - 10.1016/j.infsof.2017.08.008

DO - 10.1016/j.infsof.2017.08.008

M3 - Article

VL - 92

SP - 223

EP - 235

JO - Information and Software Technology

JF - Information and Software Technology

SN - 0950-5849

ER -