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 条
  • [21] Functional saponins in tea flower (Flower buds of Camellia sinensis):: Gastroprotective and hypoglycemic effects of floratheasaponins and qualitative and quantitative analysis using HPLC
    Yoshikawa, Masayuki
    Wang, Tao
    Sugimoto, Sachiko
    Nakamura, Seikou
    Nagatomo, Akifumi
    Matsuda, Hisashi
    Harima, Shoichi
    YAKUGAKU ZASSHI-JOURNAL OF THE PHARMACEUTICAL SOCIETY OF JAPAN, 2008, 128 (01): : 141 - 151
  • [22] QUALITATIVE AND QUANTITATIVE-ANALYSIS OF ENDOGENOUS GIBBERELLINS IN ONION PLANTS AND THEIR EFFECTS ON BULB DEVELOPMENT
    NOJIRI, H
    TOYOMASU, T
    YAMANE, H
    SHIBAOKA, H
    MUROFUSHI, N
    BIOSCIENCE BIOTECHNOLOGY AND BIOCHEMISTRY, 1993, 57 (12) : 2031 - 2035
  • [23] Effects of different sucrose concentrations on vitrified porcine preantral follicles: Qualitative and quantitative analysis
    Rocio Gabriel, Paula
    Torres, Pablo
    Celeste Fratto, Maria
    Cisale, Humberto
    Alberto Claver, Juan
    Marcelo Lombardo, Daniel
    Laura Fischman, Maria
    CRYOBIOLOGY, 2017, 76 : 1 - 7
  • [24] Qualitative and Quantitative Analysis of the Effects of Quinazolinones on Internal Organs of Newborn Balb/C Mice
    Lahijani, Maryam Shams
    Rajabi, Hoda
    Etemad, Samar
    Eslam, Mahla Fadavi
    IRANIAN JOURNAL OF BASIC MEDICAL SCIENCES, 2009, 12 (02) : 112 - 120
  • [25] Analysis of the effects of qualitative and quantitative educational indicators on crime in the state of Minas Gerais, Brazil
    de Souza, Maria Alice
    Teixeira, Evandro Camargos
    ESPACIO ABIERTO, 2024, 33 (02)
  • [26] Effects of art therapy on the physical and emotional state of health of patients - a quantitative and qualitative analysis
    Plecity, D.
    Danner-Weinberger, A.
    Szkura, L.
    von Wietersheim, J.
    PSYCHOTHERAPIE PSYCHOSOMATIK MEDIZINISCHE PSYCHOLOGIE, 2007, 57 (02) : 100 - 100
  • [27] Fumigation and fungicide effects and qualitative and quantitative analysis of Pythium, Fusarium and Rhizoctonia on strawberry roots
    Liu, B.
    Sun, J.
    Peeden, K.
    Driver, J.
    Louws, F.
    PHYTOPATHOLOGY, 2011, 101 (06) : S108 - S108
  • [28] Qualitative and quantitative analysis of the effects of drinking water disinfection processes on eukaryotic microorganisms: A meta-analysis
    Li, Haoran
    Feng, Mingbao
    Yu, Xin
    CHEMOSPHERE, 2023, 332
  • [29] Qualitative and quantitative assessment of atrial functional mitral regurgitation: analysis from the REVEAL-AFMR registry
    Murata, Azusa
    Kaneko, Tomohiro
    Amano, Masashi
    Sato, Yukio
    Ohno, Yohei
    Obokata, Masaru
    Sato, Kimi
    Okada, Taiji
    Sakamoto, Akira
    Hirose, Naoki
    Morita, Kojiro
    Machino-Ohtsuka, Tomoko
    Abe, Yukio
    Minamino, Tohru
    Delgado, Victoria
    Kagiyama, Nobuyuki
    EUROPEAN HEART JOURNAL-CARDIOVASCULAR IMAGING, 2024, 26 (02) : 299 - 306
  • [30] QUALITATIVE, QUANTITATIVE AND FUNCTIONAL ANALYSIS OF PROTEINS IN THE PERITONEAL EFFLUENTS OF CHILDREN ON CONTINUOUS CYCLING PERITONEAL DIALYSIS (CCPD)
    Bruschi, M.
    Candiano, G.
    Cappelli, V.
    Ghiggeri, G.
    Verrina, E.
    PEDIATRIC NEPHROLOGY, 2009, 24 (09) : 1862 - 1862