arrow
Return

How developers perceive smells in source code: A replicated study

delete2017-12-01
delete63
PRE
AI
D
Davide Taibi *
A
Andrea Janes
V
Valentina Lenarduzzi
DOI:10.1016/j.infsof.2017.08.008delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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. (C) 2017 Elsevier B.V. All rights reserved.
Keywords:
Software maintenance
Code smells
Bad smells
Antipatterns
Refactoring
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Information and Software Technology cover
Information and Software Technology
IF:
4.3
Papers:
3.8K
Citations:
7.7K

Organization

F
Free University of Bozen-Bolzano
Scholars:
2.8K
Papers: 2.6K
Citations: 6
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave
Statistics notes: Cronbach's alpha
errBMJ
IF0
err1997-02-22
err0
errOAAI
errJ M. Bland; D. G Altman
errShare
errSave
DECOR: A Method for the Specification and Detection of Code and Design Smells
err2010-01-01
err541
errOAAI
errMoha, Naouel; Gueheneuc, Yann-Gael; Duchien, Laurence; Le Meur, Anne-Francoise
errShare
errSave
A controlled experiment investigation of an object-oriented design heuristic for maintainability
err2004-07-01
err51
PREAI
errDeligiannis, I; Stamelos, I; Angelis, L; Roumeliotis, M; Shepperd, M
errShare
errSave
Relationship between postoperative retear and preoperative fatty degeneration in large and massive rotator cuff tears: quantitative analysis using T2 mapping
err2019-08-01
err0
PREAI
errYuki Iijima; Keisuke Matsuki; Shota Hoshika; Yusuke Ueda; Hiroshige Hamada; Morihito Tokai; Norimasa Takahashi; Hiroyuki Sugaya; Atsuya Watanabe
errShare
errSave
Guided by Tawhid (unity): Ethics in The UAE workplace
err2007-01-01
err0
PREAI
errDonelda S. McKechnie; Jim Grant; Lewis R. Tucker; Ralph Kuehn
errShare
errSave
Quantifying the Effect of Code Smells on Maintenance Effort
err2013-08-01
err230
PREAI
errSjoberg, Dag I. K.; Yamashita, Aiko; Anda, Bente C. D.; Mockus, Audris; Dyba, Tore
errShare
errSave
no more