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 条
  • [41] The role of amino acids in facilitating lead accumulation in microalgae: A quantitative analysis of functional group effects
    Fang, Jingjing
    Chen, Shiyu
    Leng, Yaling
    Shi, Wen
    Zhang, Gaoxiang
    Lin, Yijie
    Li, Feili
    JOURNAL OF MOLECULAR LIQUIDS, 2024, 399
  • [42] Qualitative and quantitative liquid chromatographic analysis methods for the determination of the effects of feed supplements on hen egg yolk phospholipids
    Kivini, H
    Järvenpää, EP
    Aro, H
    Huopalahti, R
    Ryhänen, EL
    JOURNAL OF AGRICULTURAL AND FOOD CHEMISTRY, 2004, 52 (13) : 4289 - 4295
  • [43] Qualitative and quantitative analysis of phenolic compounds in blueberries and protective effects on hydrogen peroxide-induced cell injury
    Wang, Chen
    Zhang, Minna
    Wu, Limin
    Wang, Fang
    Li, Lingxi
    Zhang, Shuting
    Sun, Baoshan
    JOURNAL OF SEPARATION SCIENCE, 2021, 44 (14) : 2837 - 2855
  • [44] Effects of food hardness on temporomandibular joint osteoarthritis: Qualitative and quantitative micro-CT analysis of rats in vivo
    Tran, Trang Thi-Ngoc
    Wang, Ding -Han
    Yang, Mu-Chen
    Chen, Jyh-Cheng
    Wu, Po-Han
    Yang, Cheng-Chieh
    Hsu, Wun-Eng
    Hsu, Ming-Lun
    ANNALS OF ANATOMY-ANATOMISCHER ANZEIGER, 2023, 246
  • [45] Descriptive Analysis of Work and Trends in Anaesthesiology from 2005 to 2006: Quantitative and Qualitative Aspects of Effects and Evaluation of Anaesthesia
    Majstorovic, Branislava M.
    Simic, Snezana
    Milakovic, Branko D.
    Vucovic, Dragan S.
    Aleksic, Valentina V.
    SRPSKI ARHIV ZA CELOKUPNO LEKARSTVO, 2010, 138 (9-10) : 624 - 631
  • [46] Qualitative and quantitative analysis of neutron irradiation effects in SiC/SiC composites using X-ray computed tomography
    Arregui-Mena, Jose David
    Koyanagi, Takaaki
    Cakmak, Ercan
    Petrie, Christian M.
    Kim, Weon-Ju
    Kim, Daejong
    Deck, Christian P.
    Sauder, Cedric
    Braun, James
    Katoh, Yutai
    COMPOSITES PART B-ENGINEERING, 2022, 238
  • [47] Quantitative Analysis of Functional Components From Nelumbo Nucifera Root Fermented Broth with Antioxidant and Tyrosinase Inhibitory Effects
    Shukla, Shruti
    Lee, Jong Suk
    Park, Juyeon
    Hwang, Dong-Ju
    Park, Jung Hyun
    Kim, Myunghee
    JOURNAL OF FOOD BIOCHEMISTRY, 2016, 40 (02) : 248 - 259
  • [48] Protective effects on ovalbumin-induced mouse asthma models and qualitative and quantitative analysis of multiple compounds in Gerberae Piloselloidis Herba
    Liu, Chunhua
    You, Jingrui
    Lu, Yuan
    Sun, Jia
    Pan, Jie
    Li, Yongjun
    Liu, Ting
    Li, Yueting
    Wang, Aimin
    Zhang, Xu
    Wang, Yonglin
    Pan, Weidong
    JOURNAL OF SEPARATION SCIENCE, 2022, 45 (05) : 990 - 1005
  • [49] Contextualizing qualitative analysis with quantitative data on the symptoms and side effects associated with melanoma treatment in the real world: the value of patient registries
    Ofori, Akosua
    Ravindra, Harshitha
    Hall, Katie
    Bottomley, Catherine
    Quinn, Casey
    Larkin, Mark
    Heinrich, Maggie
    QUALITY OF LIFE RESEARCH, 2021, 30 (SUPPL 1) : S79 - S80
  • [50] Qualitative-quantitative identification and functional zoning analysis of production-living-ecological space: a case study of Urban Agglomeration in Central Yunnan, China
    Yongping Li
    Junsan Zhao
    Shuqing Zhang
    Guangri Zhang
    Longjin Zhou
    Environmental Monitoring and Assessment, 2023, 195