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 条
  • [21] Closed-Loop Cognitive-Driven Gain Control of Competing Sounds Using Auditory Attention Decoding
    Aroudi, Ali
    Fischer, Eghart
    Serman, Maja
    Puder, Henning
    Doclo, Simon
    [J]. ALGORITHMS, 2021, 14 (10)
  • [22] Assessment of Cognitive-Driven Performance-Based Activities of Daily Living Dysfunction in Parkinson's Disease
    Sulzer, Patricia
    Baeumer, Alena
    Hoang, Huong Giang
    Becker, Sara
    Loenneker, Hannah Dorothea
    Graessel, Elmar
    Liepelt-Scarfone, Inga
    [J]. JOURNAL OF THE INTERNATIONAL NEUROPSYCHOLOGICAL SOCIETY, 2020, 26 (04) : 430 - 440
  • [23] Cognitive Training Improves Cognitive Performance, but What Else?
    Jones, Richard N.
    [J]. JOURNAL OF THE AMERICAN GERIATRICS SOCIETY, 2018, 66 (04) : 648 - 649
  • [24] Cognitive Driven Development helps software teams to keep code units under the limit!☆
    Pinto, Gustavo
    de Souza, Alberto
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2023, 206
  • [25] DEVELOPMENT AGREEMENTS - TO WHAT EXTENT ARE THEY ENFORCEABLE
    KRAMER, BM
    [J]. REAL ESTATE LAW JOURNAL, 1981, 10 (01): : 29 - 51
  • [26] What Improves Developer Productivity at Google? Code Quality
    Cheng, Lan
    Murphy-Hill, Emerson
    Canning, Mark
    Jaspan, Ciera
    Green, Collin
    Knight, Andrea
    Zhang, Nan
    Kammer, Elizabeth
    [J]. PROCEEDINGS OF THE 30TH ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2022, 2022, : 1302 - 1313
  • [27] What Do We Know About Readability of Test Code? - A Systematic Mapping Study
    Winkler, Dietmar
    Urbanke, Pirmin
    Ramler, Rudolf
    [J]. 2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2022), 2022, : 1167 - 1174
  • [28] To what extent is failure to thrive in infancy associated with poorer cognitive development? A review and meta-analysis
    Corbett, SS
    Drewett, RF
    [J]. JOURNAL OF CHILD PSYCHOLOGY AND PSYCHIATRY, 2004, 45 (03) : 641 - 654
  • [29] Author Response: Cognitive-Driven Activities of Daily Living Impairment as a Predictor for Dementia in Parkinson Disease: A Longitudinal Cohort Study
    Becker, Sara
    Bode, Merle
    Liepelt-Scarfone, Inga
    [J]. NEUROLOGY, 2023, 100 (08) : 400 - 400
  • [30] Reader Response: Cognitive-Driven Activities of Daily Living Impairment as a Predictor for Dementia in Parkinson Disease: A Longitudinal Cohort Study
    Lewis, Ariane
    Ganesh, Aravind
    Galetta, Steven
    [J]. NEUROLOGY, 2023, 100 (08) : 399 - 399