The downside of functional constructs: a quantitative and qualitative analysis of their fix-inducing effects

被引:0
|
作者
Zampetti, Fiorella [1 ]
Zid, Cyrine [2 ]
Antoniol, Giuliano [2 ]
Penta, Massimiliano Di [1 ]
机构
[1] Univ Sannio, Benevento, Italy
[2] Polytech Montreal, Montreal, PQ, Canada
关键词
Functional programming; !text type='Python']Python[!/text; Fix-Inducing changes; Empirical study; SOFTWARE; IDIOMS; GITHUB; SMELLS;
D O I
10.1007/s10664-024-10568-z
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The Python programming language features several functional constructs which can bring some benefits, e.g., fewer side effects, easier parallelization, or, in some cases, better comprehensibility due to concise code. This paper investigates the extent to which the addition/modification of certain functional constructs, i.e., lambdas, comprehensions, and map/reduce/filter functions, have higher chances to induce fixes than other changes, as well as how much this correlates with the complexity of the construct, and what is the survival time of such fix-inducing changes. To this aim, we analyze the change history of 200 open-source Python projects accounting for similar or equal to 630k\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\simeq 630k$$\end{document} commits. Results of the study show that: (i) changes to functional constructs have higher odds of inducing fixes than other changes, (ii) some functional constructs, such as lambdas and comprehensions, have higher odds of inducing fixes than others, (iii) the cyclomatic complexity of the functional construct is either not noteworthy or has a negligible effect, and (iv) the survival time of the fix-inducing changes varies among the involved functional constructs. The qualitative analysis performed on a statistically significant sample highlights different scenarios in which functional constructs have been fixed. Results of this study suggest better development support when using functional constructs during development, and prioritize code review and testing on certain areas of the source code.
引用
收藏
页数:43
相关论文
共 50 条
  • [31] Qualitative and quantitative analysis of antioxidant and quinone reductase-inducing phytochemicals present in a Maqui berry (Aristotelia chilensis) botanical dietary supplement
    Naman, C. Benjamin
    Li, Jie
    Deng, Ye
    Keller, William J.
    Kinghorn, A. Douglas
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 2016, 252
  • [32] Short-term effects of caffeine intake on binocular accommodative facility: a quantitative and qualitative analysis
    Redondo, Beatriz
    Vera, Jesus
    Koulieris, George-Alex
    Molina-Romero, Ruben
    Jimenez, Raimundo
    CLINICAL AND EXPERIMENTAL OPTOMETRY, 2022, 105 (05) : 534 - 538
  • [33] QUALITATIVE AND QUANTITATIVE-ANALYSIS OF FUNCTIONAL-GROUPS CONTAINING ACTIVE HYDROGEN BY F-19-NMR
    MUSHA, K
    NAGATA, C
    BUNSEKI KAGAKU, 1981, 30 (01) : 71 - 73
  • [34] HUMAN C-4 POLYMORPHISM - PEDIGREE ANALYSIS OF QUALITATIVE, QUANTITATIVE, AND FUNCTIONAL PARAMETERS AS A BASIS FOR PHENOTYPE INTERPRETATIONS
    MAUFF, G
    BENDER, K
    GILES, CM
    GOLDMANN, S
    OPFERKUCH, W
    WACHAUF, B
    HUMAN GENETICS, 1984, 65 (04) : 362 - 372
  • [35] Dental Functional Status in a Southern Vietnamese Adult Population-A Combined Quantitative and Qualitative Classification System Analysis
    Nguyen, Thoa C.
    Witter, Dick J.
    Bronkhorst, Ewald M.
    Pham, Luc H.
    Creugers, Nico H. J.
    INTERNATIONAL JOURNAL OF PROSTHODONTICS, 2011, 24 (01) : 30 - 37
  • [36] FUNCTIONAL MICELLAR CATALYSIS .3. QUANTITATIVE-ANALYSIS OF THE CATALYTIC EFFECTS DUE TO FUNCTIONAL MICELLES AND COMICELLES
    FORNASIER, R
    TONELLATO, U
    JOURNAL OF THE CHEMICAL SOCIETY-FARADAY TRANSACTIONS I, 1980, 76 : 1301 - 1310
  • [37] Qualitative and quantitative meta-analysis of acupuncture effects on the motor function of Parkinson's disease patients
    Lei, Suying
    Fan, Jingqi
    Liu, Xin
    Xv, Xiaoyan
    Zhang, Jiayan
    Zhou, Zipu
    Zhuang, Lixing
    FRONTIERS IN NEUROSCIENCE, 2023, 17
  • [38] Quantitative and qualitative changes in primary and secondary stem organization of Aristolochia macrophylla during ontogeny:: functional growth analysis and experiments
    Masselter, Tom
    Speck, Thomas
    JOURNAL OF EXPERIMENTAL BOTANY, 2008, 59 (11) : 2955 - 2967
  • [39] Assessment of Brain Perfusion Disorders in Patients with Dizziness: Thorough Qualitative and Voxel based Quantitative Analysis on Functional SPECT Neuroimaging
    Nemati, R.
    Nayyeri, M.
    Chabi, N.
    Assadi, M.
    EUROPEAN JOURNAL OF NUCLEAR MEDICINE AND MOLECULAR IMAGING, 2018, 45 : S426 - S427
  • [40] DIVERGENT EFFECTS OF CYCLOPHOSPHAMIDE ADMINISTRATION ON MONONUCLEAR KILLER CELLS - QUANTITATIVE DEPLETION OF CELL NUMBERS VERSUS QUALITATIVE SUPPRESSION OF FUNCTIONAL CAPABILITIES
    HUNNINGHAKE, GW
    FAUCI, AS
    JOURNAL OF IMMUNOLOGY, 1976, 117 (01): : 337 - 342