To What Extent Cognitive-Driven Development Improves Code Readability?

被引:0
|
作者
Barbosa, Leonardo Ferreira [1 ]
Pinto, Victor Hugo [1 ]
Oliveira Tavares de Souza, Alberto Luiz [2 ]
Pinto, Gustavo [1 ,2 ]
机构
[1] UFPA, Belem, Para, Brazil
[2] Zup Innovat, Sao Paulo, SP, Brazil
关键词
Cognitive-Driven Development; Readability; Cognitive Load;
D O I
10.1145/3544902.3546241
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Background: Cognitive-Driven Development (CDD) is a coding design technique that aims to reduce developers' cognitive effort in understanding a given code unit (e.g., a class). By following CDD design practices, it is expected that the coding units to be smaller and, thus, easier to maintain and evolve. However, it is so unknown whether these smaller code units coded using CDD standards are easier to understand. Aims: This work aims to assess how much CDD improves code readability. Method: To achieve this goal, we conducted a two-phase study. We start by inviting professional software developers to vote (and justify their rationale) on the most readable pair of code snippets (from a set of 10 pairs); one of the pairs was coded using CDD practices. We received 133 answers. In the second phase, we applied the state-of-the-art readability model to the 10-pairs of CDD-driven refactorings. Results: We observed some conflicting results. On the one hand, developers perceived that seven (out of 10) CDD-driven refactorings were more readable than their counterparts; for two other CDD-driven refactorings, developers were undecided, while only in one of the CDD-driven refactorings, developers preferred the original code snippet. On the other hand, we noticed that only one CDD-driven refactorings has better performance readability, assessed by state-of-the-art readability models. Conclusions: Our results provide initial evidence that CDD could be an exciting approach for software design.
引用
收藏
页码:238 / 248
页数:11
相关论文
共 50 条
  • [1] Toward a Definition of Cognitive-Driven Development
    Oliveira Tavares de Souza, Alberto Luiz
    Santiago Costa Pinto, Victor Hugo
    [J]. 2020 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2020), 2020, : 776 - 778
  • [2] Cognitive Load Analyzer: A Support Tool for Cognitive-Driven Development
    Federal University of Pará, Belém, Brazil
    不详
    [J]. ACM Int. Conf. Proc. Ser, (468-473):
  • [3] Cognitive-Driven Development: Preliminary Results on Software Refactorings
    Santiago C Pinto, Victor Hugo
    Oliveira Tavares de Souza, Alberto Luiz
    Barboza de Oliveira, Yuri Matheus
    Ribeiro, Danilo Monteiro
    [J]. ENASE: PROCEEDINGS OF THE 16TH INTERNATIONAL CONFERENCE ON EVALUATION OF NOVEL APPROACHES TO SOFTWARE ENGINEERING, 2021, : 92 - 102
  • [4] Effects of Cognitive-driven Development in the Early Stages of the Software Development Life Cycle
    Pinto, Victor Hugo Santiago C.
    Oliveira Tavares De Souza, Alberto Luiz
    [J]. ICEIS: PROCEEDINGS OF THE 24TH INTERNATIONAL CONFERENCE ON ENTERPRISE INFORMATION SYSTEMS - VOL 2, 2022, : 40 - 51
  • [5] Cognitive-driven ADL impairment as a predictor for PDD
    Liepelt-Scarfone, I.
    Bode, M.
    Brockmann, K.
    Gasser, T.
    Michaelis, K.
    Nussbaum, S.
    Nuerk, H. C.
    Schulte, C.
    Maetzler, W.
    Zimmermann, M.
    Berg, D.
    Becker, S.
    [J]. MOVEMENT DISORDERS, 2021, 36 : S294 - S295
  • [6] Robust Image Classification with Cognitive-Driven Color Priors
    Gu, Peng
    Zhu, Chengfei
    Lan, Xiaosong
    Wang, Jie
    Li, Shuxiao
    [J]. ELECTRONICS, 2020, 9 (11) : 1 - 16
  • [7] Priorities of PD patients for treatment of cognitive-driven ADL impairment
    Liepelt-Scarfone, I.
    Bentele, M.
    Becker, S.
    Altmann, C.
    Schaeffer, E.
    Michaelis, K.
    Solbrig, S.
    Brockmann, K.
    [J]. MOVEMENT DISORDERS, 2022, 37 : S541 - S541
  • [8] Measuring the Extent of Source Code Readability Using Regression Analysis
    Choi, Sangchul
    Kim, Suntae
    Lee, Jeong-Hyu
    Kim, JeongAh
    Choi, Jae-Young
    [J]. COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2018, PT IV, 2018, 10963 : 410 - 421
  • [9] A Cognitive-Driven Ordinal Preservation for Multimodal Imbalanced Brain Disease Diagnosis
    Zhu, Qi
    Zhu, Ting
    Zhang, Rui
    Ye, Haizhou
    Sun, Kai
    Xu, Yong
    Zhang, Daoqiang
    [J]. IEEE TRANSACTIONS ON COGNITIVE AND DEVELOPMENTAL SYSTEMS, 2023, 15 (02) : 675 - 689
  • [10] Cognitive-Driven Optimization of Sparse Array Transceiver for MIMO Radar Beamforming
    Zhai, Weitong
    Wang, Xiangrong
    Hamza, Syed A.
    Amin, Moeness G.
    [J]. 2021 IEEE RADAR CONFERENCE (RADARCONF21): RADAR ON THE MOVE, 2021,