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 条
  • [1] Systematic Integration of Quantitative Measures into the Qualitative Content Analysis of Constructs
    Hoeft, Nikolas
    Heckmann, Mark
    Jankowicz, Devi
    JOURNAL OF CONSTRUCTIVIST PSYCHOLOGY, 2019, 32 (04) : 345 - 369
  • [2] Qualitative and Quantitative Analysis of Systems and Synthetic Biology Constructs using P Systems
    Konur, Savas
    Gheorghe, Marian
    Dragomir, Ciprian
    Mierla, Laurentiu
    Ipate, Florentin
    Krasnogor, Natalio
    ACS SYNTHETIC BIOLOGY, 2015, 4 (01): : 83 - 92
  • [3] Efficiency in functional analysis of problem behavior: A quantitative and qualitative review
    Saini, Valdeep
    Fisher, Wayne W.
    Retzlaff, Billie J.
    Keevy, Madeleine
    JOURNAL OF APPLIED BEHAVIOR ANALYSIS, 2020, 53 (01) : 44 - 66
  • [4] QUANTITATIVE AND QUALITATIVE-ANALYSIS OF THE PRESSOR EFFECTS OF LEVONORDEFRIN
    ROBERTSON, VJ
    TAYLOR, SE
    GAGE, TW
    JOURNAL OF CARDIOVASCULAR PHARMACOLOGY, 1984, 6 (05) : 929 - 935
  • [5] The effects of diazepam on sleep spindles: A qualitative and quantitative analysis
    Suetsugi, M
    Mizuki, Y
    Ushijima, I
    Kobayashi, T
    Watanabe, Y
    NEUROPSYCHOBIOLOGY, 2001, 43 (01) : 49 - 53
  • [6] Qualitative and quantitative analysis of acoustomigration effects in SAW-devices
    Kubat, F
    Ruile, W
    Eberl, C
    Hesjedal, T
    Reindl, LM
    MICROELECTRONIC ENGINEERING, 2005, 82 (3-4) : 655 - 659
  • [7] Effects of astrocytes on oligodendroglial process formation: A qualitative and quantitative analysis
    Morley, M
    Pleasure, D
    Kreider, B
    JOURNAL OF NEUROCHEMISTRY, 1996, 66 : S66 - S66
  • [8] Expanding the neighborhood effects model: Mixing quantitative and qualitative analysis
    Clampet-Lundquist, S
    URBAN GEOGRAPHY, 1998, 19 (05) : 459 - 476
  • [9] Evaluating Quantitative and Qualitative Types of Change: An Analysis of the Malleability of General and Specific Self-Efficacy Constructs and Measures
    Mencl, Jennifer
    Tay, Louis
    Schwoerer, Catherine E.
    Drasgow, Fritz
    JOURNAL OF LEADERSHIP & ORGANIZATIONAL STUDIES, 2012, 19 (03) : 378 - 391
  • [10] A new possible parameter for the detection of aneuploidy inducing substances: The analysis of qualitative and quantitative abnormalities of the spindle apparatus
    Kochendorfer, U
    Stammberger, I
    Mayer, D
    Schwanitz, G
    MUTATION RESEARCH-ENVIRONMENTAL MUTAGENESIS AND RELATED SUBJECTS, 1996, 361 (2-3): : 55 - 66